NIMSDK-iOS
载入中...
搜索中...
未找到
<NIMQChatApnsManager>协议 参考

#import <NIMQChatApnsManagerProtocol.h>

类 <NIMQChatApnsManager> 继承关系图:

构造函数

(nullable NIMPushNotificationSetting *) - currentSetting
 
(void) - updateApnsSetting:completion:
 
(void) - registerBadgeCountHandler:
 
(void) - updatePushNotificationProfile:server:completion:
 
(void) - updatePushNotificationProfile:channel:completion:
 
(void) - updatePushNotificationProfile:channelCategory:completion:
 
(void) - getUserPushNotificationConfigByServer:completion:
 
(void) - getUserPushNotificationConfigByChannel:completion:
 
(void) - getUserPushNotificationConfigByChannelCategories:completion:
 
(void) - addDelegate:
 
(void) - removeDelegate:
 

详细描述

推送协议

函数文档

◆ addDelegate:

- (void) addDelegate: (id< NIMQChatApnsManagerDelegate >)  delegate

添加委托

参数
delegate委托

◆ currentSetting

- (nullable NIMPushNotificationSetting *) currentSetting

获取当前的推送免打扰设置

返回
推送设置

◆ getUserPushNotificationConfigByChannel:completion:

- (void) getUserPushNotificationConfigByChannel: (NSArray< NIMQChatChannelIdInfo * > *)  channelIdInfo
completion: (nullable NIMQChatGetUserPushNotificationConfigHandler completion 

获取频道维度用户推送配置

参数
channelIdInfo频道ID信息数组
completion完成的回调 @discussion 限制单次查询频道数量为10

◆ getUserPushNotificationConfigByChannelCategories:completion:

- (void) getUserPushNotificationConfigByChannelCategories: (NSArray< NIMQChatChannelCategoryIdInfo * > *)  categoryIdInfos
completion: (nullable NIMQChatGetUserPushNotificationConfigHandler completion 

获取频道分组维度用户推送配置

参数
categoryIdInfo频道分组ID信息数组
completion完成的回调 @discussion 限制单次查询频道数量为10

◆ getUserPushNotificationConfigByServer:completion:

- (void) getUserPushNotificationConfigByServer: (NSArray< NSNumber * > *)  serverIds
completion: (nullable NIMQChatGetUserPushNotificationConfigHandler completion 

获取服务器维度用户推送配置

参数
serverIds服务器ID数组
completion完成的回调 @discussion 限制单次查询服务器数量为10

◆ registerBadgeCountHandler:

- (void) registerBadgeCountHandler: (NIMBadgeHandler handler

注册获取 badge 数量的回调函数

参数
handler获取 badge 回调 @discussion 默认场景下,云信会将所有未读数量统一汇报给服务器,包括需要提醒和不需要提醒的会话未读数,上层可以通过注册该接口进行调整

◆ removeDelegate:

- (void) removeDelegate: (id< NIMQChatApnsManagerDelegate >)  delegate

移除委托

参数
delegate委托

◆ updateApnsSetting:completion:

- (void) updateApnsSetting: (NIMPushNotificationSetting *)  setting
completion: (nullable NIMApnsHandler completion 

更新推送免打扰设置

参数
setting推送设置
completion完成的回调

◆ updatePushNotificationProfile:channel:completion:

- (void) updatePushNotificationProfile: (NIMPushNotificationProfile profile
channel: (NIMQChatChannelIdInfo *)  channelIdInfo
completion: (nullable NIMQChatHandler completion 

更新频道推送消息等级配置

参数
profile推送消息等级配置
channelIdInfo频道ID信息
completion完成的回调

◆ updatePushNotificationProfile:channelCategory:completion:

- (void) updatePushNotificationProfile: (NIMPushNotificationProfile profile
channelCategory: (NIMQChatChannelCategoryIdInfo *)  categoryIdInfo
completion: (nullable NIMQChatHandler completion 

更新频道分组推送消息等级配置

参数
profile推送消息等级配置
categoryIdInfo频道分组ID信息
completion完成的回调

◆ updatePushNotificationProfile:server:completion:

- (void) updatePushNotificationProfile: (NIMPushNotificationProfile profile
server: (unsigned long long)  serverId
completion: (nullable NIMQChatHandler completion 

更新服务器推送消息等级配置

参数
profile推送消息等级配置
serverId服务器ID
completion完成的回调

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