HyphenateChatSDK  3.8.3.1
构造函数 | 属性 | 所有成员列表
<IEMPushManager>协议 参考
类 <IEMPushManager> 继承关系图:

构造函数

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

属性

EMPushOptionspushOptions
 
NSArray * noPushGroups
 

函数文档

◆ disableOfflinePushStart:end:

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

关闭离线推送

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

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

◆ enableOfflinePush

- (EMError *) enableOfflinePush

开启离线推送

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

返回
错误信息

◆ getPushNotificationOptionsFromServerWithCompletion:

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

从服务器获取推送属性

参数
aCompletionBlock完成的回调

◆ getPushOptionsFromServerWithError:

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

从服务器获取推送属性

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

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

◆ updatePushDisplayName:

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

设置推送消息显示的昵称

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

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

◆ updatePushDisplayName:completion:

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

设置推送的显示名

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

◆ updatePushDisplayStyle:

- (EMError *) updatePushDisplayStyle: (EMPushDisplayStyle)  pushDisplayStyle

设置推送消息显示的样式

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

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

◆ 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是否接收推送
返回
错误信息

◆ updatePushServiceForGroups:disablePush:completion:

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

设置群组是否接收推送

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

属性说明

◆ noPushGroups

- (NSArray*) noPushGroups
readnonatomicstrong

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

参数
pError错误信息

◆ pushOptions

- (EMPushOptions*) pushOptions
readnonatomicstrong

获取推送配置


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