HyphenateChatSDK  3.8.7
构造函数 | 属性 | 所有成员列表
<IEMPushManager>协议 参考

#import <IEMPushManager.h>

类 <IEMPushManager> 继承关系图:

构造函数

(EMError *) - enableOfflinePush
 
(EMError *) - disableOfflinePushStart:end:
 
(EMError *) - updatePushServiceForGroups:disablePush:
 
(void) - updatePushServiceForGroups:disablePush:completion:
 
(EMError *) - updatePushServiceForUsers:disablePush:
 
(void) - updatePushServiceForUsers:disablePush:completion:
 
(EMError *) - updatePushDisplayStyle:
 
(void) - updatePushDisplayStyle:completion:
 
(EMError *) - updatePushDisplayName:
 
(void) - updatePushDisplayName:completion:
 
(EMPushOptions *) - getPushOptionsFromServerWithError:
 
(void) - getPushNotificationOptionsFromServerWithCompletion:
 

属性

EMPushOptionspushOptions
 
NSArray * noPushUIds
 
NSArray * noPushGroups
 

详细描述

@header IEMPushManager.h @abstract 推送相关的管理协议类

作者
Hyphenate
版本
3.00

函数文档

◆ disableOfflinePushStart:end:

- (EMError *) disableOfflinePushStart: (int)  aStartHour
end: (int)  aEndHour 

关闭离线推送

同步方法,会阻塞当前线程

参数
aStartHour开始时间
aEndHour结束时间
返回
EMError 错误信息

◆ enableOfflinePush

- (EMError *) enableOfflinePush

开启离线推送

同步方法,会阻塞当前线程

返回
EMError 错误信息

◆ getPushNotificationOptionsFromServerWithCompletion:

- (void) getPushNotificationOptionsFromServerWithCompletion: (void(^)(EMPushOptions *aOptions, EMError *aError))  aCompletionBlock

从服务器获取推送属性

参数
aCompletionBlock完成的回调

◆ getPushOptionsFromServerWithError:

- (EMPushOptions *) getPushOptionsFromServerWithError: (EMError *_Nullable *_Nullable)  pError

从服务器获取推送属性

同步方法,会阻塞当前线程

参数
pError错误信息
返回
EMPushOptions 推送属性

◆ updatePushDisplayName:

- (EMError *) updatePushDisplayName: (NSString *)  aDisplayName

设置推送消息显示的昵称

同步方法,会阻塞当前线程

参数
aNickname要设置的昵称
返回
EMError 错误信息

◆ updatePushDisplayName:completion:

- (void) updatePushDisplayName: (NSString *)  aDisplayName
completion: (void(^)(NSString *aDisplayName, EMError *aError))  aCompletionBlock 

设置推送的显示的昵称

参数
aDisplayName推送显示的昵称
aCompletionBlock完成的回调

◆ updatePushDisplayStyle:

- (EMError *) updatePushDisplayStyle: (EMPushDisplayStyle)  pushDisplayStyle

设置推送消息显示的样式

同步方法,会阻塞当前线程

参数
pushDisplayStyle要设置的推送样式
返回
EMError 错误信息

◆ updatePushDisplayStyle:completion:

- (void) updatePushDisplayStyle: (EMPushDisplayStyle)  pushDisplayStyle
completion: (nonnull void(^)(EMError *_Nonnull))  aCompletionBlock 

设置推送的显示名

参数
pushDisplayStyle推送显示样式
aCompletionBlock完成的回调

◆ updatePushServiceForGroups:disablePush:

- (EMError *) updatePushServiceForGroups: (NSArray *)  aGroupIds
disablePush: (BOOL)  disable 

设置群组是否接收推送

同步方法,会阻塞当前线程

参数
aGroupIds群组id
disable是否接收推送
返回
EMError 错误信息

◆ updatePushServiceForGroups:disablePush:completion:

- (void) updatePushServiceForGroups: (NSArray *)  aGroupIds
disablePush: (BOOL)  disable
completion: (nonnull void(^)(EMError *_Nonnull aError))  aCompletionBlock 

设置群组是否接收推送

参数
aGroupIds群组id
disable是否接收推送
aCompletionBlock完成的回调

◆ updatePushServiceForUsers:disablePush:

- (EMError *) updatePushServiceForUsers: (NSArray *)  aUIds
disablePush: (BOOL)  disable 

设置是否接收联系人消息推送

同步方法,会阻塞当前线程

参数
aUIds用户环信id
disable是否接收推送
返回
错误信息

◆ updatePushServiceForUsers:disablePush:completion:

- (void) updatePushServiceForUsers: (NSArray *)  aUIds
disablePush: (BOOL)  disable
completion: (nonnull void(^)(EMError *_Nonnull aError))  aCompletionBlock 

设置是否接收联系人消息推送

参数
aUIds用户环信id
disable是否接收推送
aCompletionBlock完成的回调

属性说明

◆ noPushGroups

- (NSArray*) noPushGroups
readnonatomicstrong

从内存中获取屏蔽了推送的群组ID列表

◆ noPushUIds

- (NSArray*) noPushUIds
readnonatomicstrong

从内存中获取屏蔽了推送的用户ID列表

◆ pushOptions

- (EMPushOptions*) pushOptions
readnonatomicstrong

消息推送配置选项


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