AgoraChatSDK 1.0.7
AgoraChatLocalNotificationManager.h
1//
2// AgoraChatLocalNotificationManager.h
3// LocalNotification
4//
5// Created by lixiaoming on 2021/8/24.
6//
7
8#import <Foundation/Foundation.h>
9#import <UserNotifications/UserNotifications.h>
10
11NS_ASSUME_NONNULL_BEGIN
12
13typedef NS_ENUM(NSInteger, EMNotificationState) {
14 EMWillPresentNotification = 0,
15 EMDidReceiveNotificationResponse
16 };
17
19@optional
32- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
44- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
54- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center openSettingsForNotification:(UNNotification *)notification;
55
65- (void)emGetNotificationMessage:(UNNotification*)notification state:(EMNotificationState)state;
66
76- (void)emDidRecivePushSilentMessage:(NSDictionary *)messageDic;
77
78@end
79
89+(instancetype _Nonnull ) alloc __attribute__((unavailable("call sharedManager instead")));
98+(instancetype _Nonnull ) new __attribute__((unavailable("call sharedManager instead")));
107-(instancetype _Nonnull ) copy __attribute__((unavailable("call sharedManager instead")));
116-(instancetype _Nonnull ) mutableCopy __attribute__((unavailable("call sharedManager instead")));
125+ (instancetype _Nonnull )sharedManager;
126
140- (void)launchWithDelegate:(id<AgoraChatLocalNotificationDelegate>)aDelegate;
141
153- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
165- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
166@end
167
168NS_ASSUME_NONNULL_END
Definition: AgoraChatLocalNotificationManager.h:81
instancetype _Nonnull sharedManager()
(unavailable("call sharedManager instead" __attribute__()
Definition: AgoraChatLocalNotificationManager.h:18