NIMQChatApnsManager Protocol Reference
Conforms to | NSObject |
---|---|
Declared in | NIMQChatApnsManagerProtocol.h |
– currentSetting
required method
获取当前的推送免打扰设置
- (nullable NIMPushNotificationSetting *)currentSetting
Return Value
推送设置
Discussion
获取当前的推送免打扰设置
Declared In
NIMQChatApnsManagerProtocol.h
– updateApnsSetting:completion:
required method
更新推送免打扰设置
- (void)updateApnsSetting:(NIMPushNotificationSetting *)setting completion:(nullable NIMApnsHandler)completion
Parameters
setting |
推送设置 |
---|---|
completion |
完成的回调 |
Discussion
更新推送免打扰设置
Declared In
NIMQChatApnsManagerProtocol.h
– registerBadgeCountHandler:
required method
注册获取 badge 数量的回调函数
- (void)registerBadgeCountHandler:(NIMBadgeHandler)handler
Parameters
handler |
获取 badge 回调 |
---|
Discussion
注册获取 badge 数量的回调函数
默认场景下,云信会将所有未读数量统一汇报给服务器,包括需要提醒和不需要提醒的会话未读数,上层可以通过注册该接口进行调整
Declared In
NIMQChatApnsManagerProtocol.h
– updatePushNotificationProfile:server:completion:
required method
更新服务器推送消息等级配置
- (void)updatePushNotificationProfile:(NIMPushNotificationProfile)profile server:(unsigned long long)serverId completion:(nullable NIMQChatHandler)completion
Parameters
profile |
推送消息等级配置 |
---|---|
serverId |
服务器ID |
completion |
完成的回调 |
Discussion
更新服务器推送消息等级配置
Declared In
NIMQChatApnsManagerProtocol.h
– updatePushNotificationProfile:channel:completion:
required method
更新频道推送消息等级配置
- (void)updatePushNotificationProfile:(NIMPushNotificationProfile)profile channel:(NIMQChatChannelIdInfo *)channelIdInfo completion:(nullable NIMQChatHandler)completion
Parameters
profile |
推送消息等级配置 |
---|---|
channelIdInfo |
频道ID信息 |
completion |
完成的回调 |
Discussion
更新频道推送消息等级配置
Declared In
NIMQChatApnsManagerProtocol.h
– updatePushNotificationProfile:channelCategory:completion:
required method
更新频道分组推送消息等级配置
- (void)updatePushNotificationProfile:(NIMPushNotificationProfile)profile channelCategory:(NIMQChatChannelCategoryIdInfo *)categoryIdInfo completion:(nullable NIMQChatHandler)completion
Parameters
profile |
推送消息等级配置 |
---|---|
categoryIdInfo |
频道分组ID信息 |
completion |
完成的回调 |
Discussion
更新频道分组推送消息等级配置
Declared In
NIMQChatApnsManagerProtocol.h
– getUserPushNotificationConfigByServer:completion:
required method
获取服务器维度用户推送配置
- (void)getUserPushNotificationConfigByServer:(NSArray<NSNumber*> *)serverIds completion:(nullable NIMQChatGetUserPushNotificationConfigHandler)completion
Parameters
serverIds |
服务器ID数组 |
---|---|
completion |
完成的回调 |
Discussion
获取服务器维度用户推送配置
限制单次查询服务器数量为10
Declared In
NIMQChatApnsManagerProtocol.h
– getUserPushNotificationConfigByChannel:completion:
required method
获取频道维度用户推送配置
- (void)getUserPushNotificationConfigByChannel:(NSArray<NIMQChatChannelIdInfo*> *)channelIdInfo completion:(nullable NIMQChatGetUserPushNotificationConfigHandler)completion
Parameters
channelIdInfo |
频道ID信息数组 |
---|---|
completion |
完成的回调 |
Discussion
获取频道维度用户推送配置
限制单次查询频道数量为10
Declared In
NIMQChatApnsManagerProtocol.h
– getUserPushNotificationConfigByChannelCategories:completion:
required method
获取频道分组维度用户推送配置
- (void)getUserPushNotificationConfigByChannelCategories:(NSArray<NIMQChatChannelCategoryIdInfo*> *)categoryIdInfos completion:(nullable NIMQChatGetUserPushNotificationConfigHandler)completion
Parameters
completion |
完成的回调 |
---|---|
categoryIdInfo |
频道分组ID信息数组 |
Discussion
获取频道分组维度用户推送配置
限制单次查询频道数量为10
Declared In
NIMQChatApnsManagerProtocol.h
– addDelegate:
required method
添加委托
- (void)addDelegate:(id<NIMQChatApnsManagerDelegate>)delegate
Parameters
delegate |
委托 |
---|
Discussion
添加委托
Declared In
NIMQChatApnsManagerProtocol.h
– removeDelegate:
required method
移除委托
- (void)removeDelegate:(id<NIMQChatApnsManagerDelegate>)delegate
Parameters
delegate |
委托 |
---|
Discussion
移除委托
Declared In
NIMQChatApnsManagerProtocol.h