HyphenateChatSDK  3.8.3.1
IEMPushManager.h
1 //
2 // IEMPushManager.h
3 // HyphenateSDK
4 //
5 // Created by 杜洁鹏 on 2020/10/26.
6 // Copyright © 2020 easemob.com. All rights reserved.
7 //
8 
9 #import <Foundation/Foundation.h>
10 #import "EMCommonDefs.h"
11 #import "EMPushOptions.h"
12 #import "EMError.h"
13 
14 NS_ASSUME_NONNULL_BEGIN
15 
16 @protocol IEMPushManager <NSObject>
17 
26 @property (nonatomic, strong, readonly) EMPushOptions *pushOptions;
27 
39 @property (nonatomic, strong, readonly) NSArray *noPushGroups;
40 
57 
58 
80 - (EMError *)disableOfflinePushStart:(int)aStartHour end:(int)aEndHour;
81 
103 - (EMError *)updatePushServiceForGroups:(NSArray *)aGroupIds
104  disablePush:(BOOL)disable;
105 
106 
122 - (void)updatePushServiceForGroups:(NSArray *)aGroupIds
123  disablePush:(BOOL)disable
124  completion:(nonnull void (^)(EMError * _Nonnull aError))aCompletionBlock;
125 
145 - (EMError *)updatePushDisplayStyle:(EMPushDisplayStyle)pushDisplayStyle;
146 
147 
161 - (void)updatePushDisplayStyle:(EMPushDisplayStyle)pushDisplayStyle
162  completion:(nonnull void (^)(EMError * _Nonnull))aCompletionBlock;
163 
164 
184 - (EMError *)updatePushDisplayName:(NSString *)aDisplayName;
185 
200 - (void)updatePushDisplayName:(NSString *)aDisplayName
201  completion:(void (^)(NSString *aDisplayName, EMError *aError))aCompletionBlock;
202 
203 
204 
224 - (EMPushOptions *)getPushOptionsFromServerWithError:(EMError *_Nullable *_Nullable)pError;
225 
237 - (void)getPushNotificationOptionsFromServerWithCompletion:(void (^)(EMPushOptions *aOptions, EMError *aError))aCompletionBlock;
238 
239 
240 
241 @end
242 
243 NS_ASSUME_NONNULL_END
Definition: EMError.h:27
Definition: EMPushOptions.h:59
Definition: IEMPushManager.h:16
NSArray * noPushGroups
Definition: IEMPushManager.h:39
EMPushOptions * pushOptions
Definition: IEMPushManager.h:26
EMError * enableOfflinePush()