HyphenateChatSDK 3.9.9.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#import "EMCursorResult.h"
14#import "EMSilentModeResult.h"
15
16NS_ASSUME_NONNULL_BEGIN
31@protocol IEMPushManager <NSObject>
32
41@property (nonatomic, strong, readonly) EMPushOptions *_Nullable pushOptions;
42
52@property (nonatomic, strong, readonly) NSArray *noPushUIds
53EM_DEPRECATED_IOS(3_8_4, 3_9_1, "Use -getSilentModeForConversations:completion: instead");
54
65@property (nonatomic, strong, readonly) NSArray *noPushGroups
66EM_DEPRECATED_IOS(3_7_4, 3_9_1, "Use -getSilentModeForConversations:completion: instead");
67
85- (EMError *)enableOfflinePush
86EM_DEPRECATED_IOS(3_7_3, 3_9_1, "Use -setSilentModeForAll:completion: instead");
87
88
113- (EMError *)disableOfflinePushStart:(int)aStartHour end:(int)aEndHour
114EM_DEPRECATED_IOS(3_7_3, 3_9_1, "Use -setSilentModeForAll:completion: instead");
115
139- (EMError *)updatePushServiceForGroups:(NSArray *)aGroupIds
140 disablePush:(BOOL)disable
141EM_DEPRECATED_IOS(3_7_4, 3_9_1, "Use -setSilentModeForConversation:conversationType:params:completion: instead");
142
143
165- (void)updatePushServiceForGroups:(NSArray *)aGroupIds
166 disablePush:(BOOL)disable
167 completion:(nonnull void (^)(EMError * aError))aCompletionBlock
168EM_DEPRECATED_IOS(3_7_4, 3_9_1, "Use -setSilentModeForConversation:conversationType: params:completion: instead");
169
193- (EMError *)updatePushServiceForUsers:(NSArray *)aUIds
194 disablePush:(BOOL)disable
195EM_DEPRECATED_IOS(3_8_4, 3_9_1, "Use -setSilentModeForConversation:conversationType: params:completion: instead");
196
218- (void)updatePushServiceForUsers:(NSArray *)aUIds
219 disablePush:(BOOL)disable
220 completion:(nonnull void (^)(EMError * aError))aCompletionBlock
221EM_DEPRECATED_IOS(3_8_4, 3_9_1, "Use -setSilentModeForConversation:conversationType: params:completion: instead");
222
242- (EMError *)updatePushDisplayStyle:(EMPushDisplayStyle)pushDisplayStyle;
243
244
262- (void)updatePushDisplayStyle:(EMPushDisplayStyle)pushDisplayStyle
263 completion:(void (^ _Nullable)(EMError * _Nullable aError))aCompletionBlock;
264
265
285- (EMError *_Nullable )updatePushDisplayName:(NSString * _Nonnull)aDisplayName;
286
305- (void)updatePushDisplayName:(NSString * _Nonnull)aDisplayName
306 completion:(void (^_Nullable)(NSString * _Nullable aDisplayName, EMError * _Nullable aError))aCompletionBlock;
307
308
309
329- (EMPushOptions *_Nullable )getPushOptionsFromServerWithError:(EMError *_Nullable *_Nullable)pError;
330
346- (void)getPushNotificationOptionsFromServerWithCompletion:(void (^_Nullable )(EMPushOptions *_Nullable aOptions, EMError *_Nullable aError))aCompletionBlock;
347
348
363- (void)setSilentModeForAll:(EMSilentModeParam*_Nullable )aParam completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
364
376-(void)getSilentModeForAllWithCompletion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
377
397- (void)setSilentModeForConversation:(NSString*_Nonnull)aConversationId
398 conversationType:(EMConversationType)aConversationType
399 params:(EMSilentModeParam*_Nullable )aParam
400 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
418- (void)getSilentModeForConversation:(NSString*_Nonnull)aConversationId
419 conversationType:(EMConversationType)aConversationType
420 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
421
439- (void)clearRemindTypeForConversation:(NSString*_Nonnull)aConversationId
440 conversationType:(EMConversationType)aConversationType
441 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
442
459- (void)getSilentModeForConversations:(NSArray<EMConversation *>*_Nonnull)aConversationArray
460 completion:(void (^_Nullable )(NSDictionary<NSString*,EMSilentModeResult*>*_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
461
477- (void)setPreferredNotificationLanguage:(NSString*_Nullable)aLaguangeCode
478 completion:(void (^_Nullable )(EMError *_Nullable aError))aCompletionBlock;
491- (void)getPreferredNotificationLanguageCompletion:(void (^_Nullable )(NSString *_Nullable aLaguangeCode,EMError *_Nullable aError))aCompletionBlock;
492
508- (void)setPushTemplate:(NSString* _Nullable)aPushTemplateName
509 completion:(void (^ _Nullable)(EMError *_Nullable aError))aCompletionBlock;
522- (void)getPushTemplate:(void (^ _Nullable)(NSString *_Nullable aPushTemplateName, EMError *_Nullable aError))aCompletionBlock;
523
524
525
526@end
527
528NS_ASSUME_NONNULL_END
Definition: EMConversation.h:55
Definition: EMError.h:27
Definition: EMPushOptions.h:58
Definition: EMSilentModeParam.h:90
Definition: EMSilentModeResult.h:21
Definition: IEMPushManager.h:31
EMPushOptions *_Nullable pushOptions
Definition: IEMPushManager.h:41
3_7_3, 3_9_1, "Use -setSilentModeForAll:completion: instead" EM_DEPRECATED_IOS()
NSArray *noPushUIds EM_DEPRECATED_IOS(3_8_4, 3_9_1, "Use -getSilentModeForConversations:completion: instead")