NIMSDK-iOS
|
#import <NIMApnsManagerProtocol.h>
构造函数 | |
(nullable NIMPushNotificationSetting *) | - currentSetting |
(void) | - updateApnsSetting:completion: |
(nullable NIMPushNotificationMultiportConfig *) | - currentMultiportConfig |
(void) | - updateApnsMultiportConfig:completion: |
(void) | - registerBadgeCountHandler: |
(void) | - addDelegate: |
(void) | - removeDelegate: |
推送协议
- (void) addDelegate: | (id< NIMApnsManagerDelegate >) | delegate |
添加委托
delegate | 委托 |
- (nullable NIMPushNotificationMultiportConfig *) currentMultiportConfig |
获取当前多端推送策略配置
- (nullable NIMPushNotificationSetting *) currentSetting |
获取当前的推送免打扰设置
- (void) registerBadgeCountHandler: | (NIMBadgeHandler) | handler |
注册获取 badge 数量的回调函数
handler | 获取 badge 回调 @discussion 默认场景下,云信会将所有未读数量统一汇报给服务器,包括需要提醒和不需要提醒的会话未读数,上层可以通过注册该接口进行调整 |
- (void) removeDelegate: | (id< NIMApnsManagerDelegate >) | delegate |
移除委托
delegate | 委托 |
- (void) updateApnsMultiportConfig: | (NIMPushNotificationMultiportConfig *) | config | |
completion: | (nullable NIMApnsHandler) | completion | |
更推送自定义多端推送策略配置
config | 多端推送策略配置 |
completion | 完成的回调 |
- (void) updateApnsSetting: | (NIMPushNotificationSetting *) | setting | |
completion: | (nullable NIMApnsHandler) | completion | |
更新推送免打扰设置
setting | 推送设置 |
completion | 完成的回调 |