AgoraChatSDK 1.2.0
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)emDidRecivePushSilentMessage:(NSDictionary *)messageDic;
63
64@end
65
76+(instancetype _Nonnull ) alloc __attribute__((unavailable("call sharedManager instead")));
82+(instancetype _Nonnull ) new __attribute__((unavailable("call sharedManager instead")));
88-(instancetype _Nonnull ) copy __attribute__((unavailable("call sharedManager instead")));
94-(instancetype _Nonnull ) mutableCopy __attribute__((unavailable("call sharedManager instead")));
100+ (instancetype _Nonnull )sharedManager;
101
110- (void)launchWithDelegate:(id<AgoraChatLocalNotificationDelegate>)aDelegate;
111
119- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
126- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
127@end
128
129NS_ASSUME_NONNULL_END
Definition: AgoraChatLocalNotificationManager.h:71
instancetype _Nonnull sharedManager()
(unavailable("call sharedManager instead" __attribute__()
Definition: AgoraChatLocalNotificationManager.h:22