#import <EMLocalNotificationManager.h>
◆ 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)回调展示样式,必须回调
该协议的文档由以下文件生成: