HyphenateChatSDK 4.5.0
构造函数 | 所有成员列表
<EMLocalNotificationDelegate>协议 参考

#import <EMLocalNotificationManager.h>

类 <EMLocalNotificationDelegate> 继承关系图:

构造函数

(void) - emuserNotificationCenter:willPresentNotification:withCompletionHandler:
 
(void) - emuserNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:
 
(void) - emuserNotificationCenter:openSettingsForNotification:
 
(void) - emGetNotificationMessage:state:
 
(void) - emHandleNotificationContent:
 
(void) - emDidRecivePushSilentMessage:
 

详细描述

本地消息通知相关的代理协议。

函数文档

◆ emDidRecivePushSilentMessage:

- (void) emDidRecivePushSilentMessage: (NSDictionary *)  messageDic
optional

当应用收到环信推送透传消息时,此方法会被调用

◆ emGetNotificationMessage:state:

- (void) emGetNotificationMessage: (UNNotification *)  notification
state: (EMNotificationState)  state 
optional

获取推送消息 可只实现这个代理方法统一获取推送通知消息

◆ emHandleNotificationContent:

- (void) emHandleNotificationContent: (UNMutableNotificationContent *)  content
optional

弹出通知前触发,可以在该回调中修改UNMutableNotificationContent属性

◆ emuserNotificationCenter:didReceiveNotificationResponse:withCompletionHandler:

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

当用户打开应用推送通知时,此方法会被调用 completionHandler必须回调

◆ emuserNotificationCenter:openSettingsForNotification:

- (void) emuserNotificationCenter: (UNUserNotificationCenter *)  center
openSettingsForNotification: (UNNotification *)  notification 
optional

在应用启动时被调用,以响应用户查看应用内通知设置的请求

◆ emuserNotificationCenter:willPresentNotification:withCompletionHandler:

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

当应用在前台收到推送通知,此方法会被调用 通过completionHandle(UNNotificationPresentationOptions options)回调展示样式,必须回调


该协议的文档由以下文件生成: