HyphenateChatSDK  3.8.4
Instance Methods | Properties | List of all members
<IEMPushManager> Protocol Reference

#import <IEMPushManager.h>

Inheritance diagram for <IEMPushManager>:

Instance Methods

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

Properties

EMPushOptionspushOptions
 
NSArray * noPushUIds
 
NSArray * noPushGroups
 

Detailed Description

@header IEMPushManager.h @abstract Push related management protocol class

Author
Hyphenate
Version
3.00

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
EMError error

◆ enableOfflinePush

- (EMError *) enableOfflinePush

Enable APNS

Synchronization method will block the current thread

Returns
EMError 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
EMPushOptions 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
EMError 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
EMError 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
EMError 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

◆ updatePushServiceForUsers:disablePush:

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

Disable uids Apns

Synchronization method will block the current thread

Parameters
aUIdsuser ids
disabledisable
Returns
Error

◆ updatePushServiceForUsers:disablePush:completion:

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

Set display style for the push notification

Parameters
aUIdsuser 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

◆ noPushUIds

- (NSArray*) noPushUIds
readnonatomicstrong

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

◆ pushOptions

- (EMPushOptions*) pushOptions
readnonatomicstrong

Message push configuration options


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