AgoraChatSDK 1.3.1
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, AgoraChatNotificationState) {
14 AgoraChatWillPresentNotification = 0,
15 AgoraChatDidReceiveNotificationResponse
16 };
17
23@optional
31- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
39- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
46- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center openSettingsForNotification:(UNNotification *)notification;
47
54- (void)emGetNotificationMessage:(UNNotification*)notification state:(AgoraChatNotificationState)state;
55
62- (void)emHandleNotificationContent:(UNMutableNotificationContent*)content;
63
70- (void)emDidRecivePushSilentMessage:(NSDictionary *)messageDic;
71
72@end
73
84+(instancetype _Nonnull ) alloc __attribute__((unavailable("call sharedManager instead")));
90+(instancetype _Nonnull ) new __attribute__((unavailable("call sharedManager instead")));
96-(instancetype _Nonnull ) copy __attribute__((unavailable("call sharedManager instead")));
102-(instancetype _Nonnull ) mutableCopy __attribute__((unavailable("call sharedManager instead")));
108+ (instancetype _Nonnull )sharedManager;
109
118- (void)launchWithDelegate:(id<AgoraChatLocalNotificationDelegate>)aDelegate;
119
127- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
134- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
135@end
136
137NS_ASSUME_NONNULL_END
Definition: AgoraChatLocalNotificationManager.h:79
instancetype _Nonnull sharedManager()
(unavailable("call sharedManager instead" __attribute__()
Definition: AgoraChatLocalNotificationManager.h:22