HyphenateChatSDK 4.5.0
构造函数 | 类方法 | 所有成员列表
EMLocalNotificationManager类 参考

#import <EMLocalNotificationManager.h>

类 EMLocalNotificationManager 继承关系图:

构造函数

((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
 

详细描述

管理本地消息通知的类。

函数文档

◆ __attribute__ [1/4]

+ ((unavailable("call sharedManager instead") __attribute__

分配内存。

◆ __attribute__ [2/4]

+ ((unavailable("call sharedManager instead") __attribute__

创建实例。

◆ __attribute__ [3/4]

- ((unavailable("call sharedManager instead") __attribute__

复制实例。

◆ __attribute__ [4/4]

- ((unavailable("call sharedManager instead") __attribute__

复制并生成新的实例。

◆ launchWithDelegate:

- (void) launchWithDelegate: (id< EMLocalNotificationDelegate >)  aDelegate

启用本地消息通知功能。

启用后该功能后,新消息会出现在通知栏中,方便用户即时阅读,提升用户体验。

◆ sharedManager

+ (instancetype _Nonnull) sharedManager

创建当前类的实例。

◆ userNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:

- (void) userNotificationCenter: (UNUserNotificationCenter *)  center
didReceiveNotificationResponse: (UNNotificationResponse *)  response
withCompletionHandler: (void(^)(void))  completionHandler 

系统收到推送通知时,点击通知栏时触发的回调方法。 如果用户在 app 层设置了 UNUserNotificationCenterDelegate,需要在 delegate 实现中调用此方法。

◆ userNotificationCenter:willPresentNotification:withCompletionHandler:

- (void) userNotificationCenter: (UNUserNotificationCenter *)  center
willPresentNotification: (UNNotification *)  notification
withCompletionHandler: (void(^)(UNNotificationPresentationOptions options))  completionHandler 

如果用户在app层设置了UNUserNotificationCenterDelegate,需要在delegate实现中调用此方法 如果不想sdk执行回调,则不传completionHandler


该类的文档由以下文件生成: