|
HyphenateChatSDK
4.14.0
|
#import <EMLocalNotificationManager.h>
构造函数 | |
| ((unavailable("call sharedManager instead") | - __attribute__ |
| ((unavailable("call sharedManager instead") | - __attribute__ |
| (void) | - launchWithDelegate: |
| (void) | - userNotificationCenter:willPresentNotification:withCompletionHandler: |
| (void) | - userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler: |
类方法 | |
| ((unavailable("call sharedManager instead") | + __attribute__ |
| ((unavailable("call sharedManager instead") | + __attribute__ |
| (instancetype _Nonnull) | + sharedManager |
管理本地消息通知的类。
| + ((unavailable("call sharedManager instead") __attribute__ |
分配内存。
| + ((unavailable("call sharedManager instead") __attribute__ |
创建实例。
| - ((unavailable("call sharedManager instead") __attribute__ |
复制并生成新的实例。
| - ((unavailable("call sharedManager instead") __attribute__ |
复制实例。
| - (void) launchWithDelegate: | (id< EMLocalNotificationDelegate >) | aDelegate |
启用本地消息通知功能。
启用后该功能后,新消息会出现在通知栏中,方便用户即时阅读,提升用户体验。
| + (instancetype _Nonnull) sharedManager |
创建当前类的实例。
| - (void) userNotificationCenter: | (UNUserNotificationCenter *) | center | |
| didReceiveNotificationResponse: | (UNNotificationResponse *) | response | |
| withCompletionHandler: | (void(^)(void)) | completionHandler | |
系统收到推送通知时,点击通知栏时触发的回调方法。 如果用户在 app 层设置了 UNUserNotificationCenterDelegate,需要在 delegate 实现中调用此方法。
| - (void) userNotificationCenter: | (UNUserNotificationCenter *) | center | |
| willPresentNotification: | (UNNotification *) | notification | |
| withCompletionHandler: | (void(^)(UNNotificationPresentationOptions options)) | completionHandler | |
如果用户在app层设置了UNUserNotificationCenterDelegate,需要在delegate实现中调用此方法 如果不想sdk执行回调,则不传completionHandler
1.8.10