HyphenateChatSDK  3.8.7
EMLocalNotificationManager.h
1 //
2 // EMLocalNotificationManager.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 
11 NS_ASSUME_NONNULL_BEGIN
12 
13 @protocol EMLocalNotificationDelegate <NSObject>
14 
25 - (void)emuserNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
36 - (void)emuserNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
37 @end
38 
39 @interface EMLocalNotificationManager : NSObject
40 +(instancetype _Nonnull ) alloc __attribute__((unavailable("call sharedManager instead")));
41 +(instancetype _Nonnull ) new __attribute__((unavailable("call sharedManager instead")));
42 -(instancetype _Nonnull ) copy __attribute__((unavailable("call sharedManager instead")));
43 -(instancetype _Nonnull ) mutableCopy __attribute__((unavailable("call sharedManager instead")));
44 + (instancetype _Nonnull )sharedManager;
45 
56 - (void)launchWithDelegate:(id<EMLocalNotificationDelegate>)aDelegate;
57 
68 - (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
79 - (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
80 @end
81 
82 NS_ASSUME_NONNULL_END
Definition: EMLocalNotificationManager.h:40
Definition: EMLocalNotificationManager.h:13