HyphenateChatSDK  3.8.3.1
Instance Methods | Properties | List of all members
<IEMPushManager> Protocol Reference
Inheritance diagram for <IEMPushManager>:

Instance Methods

(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:
 

Properties

EMPushOptionspushOptions
 
NSArray * noPushGroups
 

Method Documentation

◆ disableOfflinePushStart:end:

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

Disable Apns

Synchronization method will block the current thread

Parameters
aStartHourstart time
aEndHourend time
Returns
Error

◆ enableOfflinePush

- (EMError *) enableOfflinePush

Enable Apns

Synchronization method will block the current thread

Returns
Error

◆ getPushNotificationOptionsFromServerWithCompletion:

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

Get Apple Push Notification Service options from the server

Parameters
aCompletionBlockThe callback of completion block

◆ getPushOptionsFromServerWithError:

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

Get Apple Push Notification Service options from the server

Synchronization method will block the current thread

Parameters
pErrorError
Returns
Apple Push Notification Service options

◆ updatePushDisplayName:

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

Set display name for Apple Push Notification message

Synchronization method will block the current thread

Parameters
aNicknameDisplay name
Returns
Error

◆ updatePushDisplayName:completion:

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

Set display name for the push notification

Parameters
aDisplayNameDisplay name of push
aCompletionBlockThe callback block of completion

◆ updatePushDisplayStyle:

- (EMError *) updatePushDisplayStyle: (EMPushDisplayStyle)  pushDisplayStyle

Set display style for Apple Push Notification message

Synchronization method will block the current thread

Parameters
pushDisplayStyleDisplay style
Returns
Error

◆ updatePushDisplayStyle:completion:

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

Set display style for the push notification

Parameters
pushDisplayStyleDisplay style of push
aCompletionBlockThe callback block of completion

◆ updatePushServiceForGroups:disablePush:

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

Disable groups Apns

Synchronization method will block the current thread

Parameters
aGroupIdsgroup ids
disabledisable
Returns
Error

◆ updatePushServiceForGroups:disablePush:completion:

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

Set display style for the push notification

Parameters
aGroupIdsgroup ids
disabledisable
aCompletionBlockThe callback block of completion

Property Documentation

◆ noPushGroups

- (NSArray*) noPushGroups
readnonatomicstrong

Get the list of groups which have disabled Apple Push Notification Service

Parameters
pErrorError

◆ pushOptions

- (EMPushOptions*) pushOptions
readnonatomicstrong

Get the Apple Push Notification Option


The documentation for this protocol was generated from the following file: