// // UnityNotificationManager.h // iOS.notifications // #if TARGET_OS_IOS #import #import #import #import "UnityNotificationData.h" #define SYSTEM_VERSION_10_OR_ABOVE ([[[UIDevice currentDevice] systemVersion] compare:@"10.0" options:NSNumericSearch] != NSOrderedAscending) @interface UnityNotificationManager : NSObject @property UNNotificationSettings* cachedNotificationSettings; @property NotificationDataReceivedResponse onNotificationReceivedCallback; @property NotificationDataReceivedResponse onRemoteNotificationReceivedCallback; @property AuthorizationRequestResponse onAuthorizationCompletionCallback; @property NSArray * cachedPendingNotificationRequests; @property NSArray * cachedDeliveredNotifications; @property (nonatomic) UNNotification* lastReceivedNotification; @property NSString* lastRespondedNotificationAction; @property NSString* lastRespondedNotificationUserText; @property UNNotificationPresentationOptions remoteNotificationForegroundPresentationOptions; + (instancetype)sharedInstance; - (id)init; - (void)finishAuthorization:(struct iOSNotificationAuthorizationData*)authData forRequest:(void*)request; - (void)finishRemoteNotificationRegistration:(UNAuthorizationStatus)status notification:(NSNotification*)notification; - (void)updateScheduledNotificationList; - (void)updateDeliveredNotificationList; - (void)updateNotificationSettings; - (void)requestAuthorization:(NSInteger)authorizationOptions withRegisterRemote:(BOOL)registerRemote forRequest:(void*)request; - (void)scheduleLocalNotification:(iOSNotificationData*)data; @end #endif