HyphenateChatSDK 4.10.0
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
389- (void)syncSilentModeConversationsFromServerCompletion:(void (^_Nullable )(EMError *_Nullable error))completionBlock;
390
391
392
412- (void)setSilentModeForConversation:(NSString*_Nonnull)aConversationId
413 conversationType:(EMConversationType)aConversationType
414 params:(EMSilentModeParam*_Nullable )aParam
415 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
433- (void)getSilentModeForConversation:(NSString*_Nonnull)aConversationId
434 conversationType:(EMConversationType)aConversationType
435 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
436
454- (void)clearRemindTypeForConversation:(NSString*_Nonnull)aConversationId
455 conversationType:(EMConversationType)aConversationType
456 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
457
474- (void)getSilentModeForConversations:(NSArray<EMConversation *>*_Nonnull)aConversationArray
475 completion:(void (^_Nullable )(NSDictionary<NSString*,EMSilentModeResult*>*_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
476
492- (void)setPreferredNotificationLanguage:(NSString*_Nullable)aLaguangeCode
493 completion:(void (^_Nullable )(EMError *_Nullable aError))aCompletionBlock;
506- (void)getPreferredNotificationLanguageCompletion:(void (^_Nullable )(NSString *_Nullable aLaguangeCode,EMError *_Nullable aError))aCompletionBlock;
507
523- (void)setPushTemplate:(NSString* _Nullable)aPushTemplateName
524 completion:(void (^ _Nullable)(EMError *_Nullable aError))aCompletionBlock;
537- (void)getPushTemplate:(void (^ _Nullable)(NSString *_Nullable aPushTemplateName, EMError *_Nullable aError))aCompletionBlock;
538
539
540
541@end
542
543NS_ASSUME_NONNULL_END
Definition: EMConversation.h:115
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")