HyphenateChatSDK 3.9.9.1
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
11NS_ASSUME_NONNULL_BEGIN
12
13typedef NS_ENUM(NSInteger, EMNotificationState) {
14 EMWillPresentNotification = 0,
15 EMDidReceiveNotificationResponse
16 };
17
25@protocol EMLocalNotificationDelegate <NSObject>
26@optional
39- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
51- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
61- (void)emuserNotificationCenter:(UNUserNotificationCenter *)center openSettingsForNotification:(UNNotification *)notification;
62
72- (void)emGetNotificationMessage:(UNNotification*)notification state:(EMNotificationState)state;
73
83- (void)emDidRecivePushSilentMessage:(NSDictionary *)messageDic;
84
85@end
86
94@interface EMLocalNotificationManager : NSObject
103+(instancetype _Nonnull ) alloc __attribute__((unavailable("call sharedManager instead")));
112+(instancetype _Nonnull ) new __attribute__((unavailable("call sharedManager instead")));
121-(instancetype _Nonnull ) copy __attribute__((unavailable("call sharedManager instead")));
130-(instancetype _Nonnull ) mutableCopy __attribute__((unavailable("call sharedManager instead")));
139+ (instancetype _Nonnull )sharedManager;
140
154- (void)launchWithDelegate:(id<EMLocalNotificationDelegate>)aDelegate;
155
167- (void)userNotificationCenter:(UNUserNotificationCenter *)center willPresentNotification:(UNNotification *)notification withCompletionHandler:(void (^)(UNNotificationPresentationOptions options))completionHandler;
179- (void)userNotificationCenter:(UNUserNotificationCenter *)center didReceiveNotificationResponse:(UNNotificationResponse *)response withCompletionHandler:(void(^)(void))completionHandler;
180@end
181
182NS_ASSUME_NONNULL_END
Definition: EMLocalNotificationManager.h:95
instancetype _Nonnull sharedManager()
(unavailable("call sharedManager instead" __attribute__()
Definition: EMLocalNotificationManager.h:25