HyphenateChatSDK 4.12.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
62- (EMError *)updatePushDisplayStyle:(EMPushDisplayStyle)pushDisplayStyle;
63
64
82- (void)updatePushDisplayStyle:(EMPushDisplayStyle)pushDisplayStyle
83 completion:(void (^ _Nullable)(EMError * _Nullable aError))aCompletionBlock;
84
85
105- (EMError *_Nullable )updatePushDisplayName:(NSString * _Nonnull)aDisplayName;
106
125- (void)updatePushDisplayName:(NSString * _Nonnull)aDisplayName
126 completion:(void (^_Nullable)(NSString * _Nullable aDisplayName, EMError * _Nullable aError))aCompletionBlock;
127
128
129
149- (EMPushOptions *_Nullable )getPushOptionsFromServerWithError:(EMError *_Nullable *_Nullable)pError;
150
166- (void)getPushNotificationOptionsFromServerWithCompletion:(void (^_Nullable )(EMPushOptions *_Nullable aOptions, EMError *_Nullable aError))aCompletionBlock;
167
168
183- (void)setSilentModeForAll:(EMSilentModeParam*_Nullable )aParam completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
184
196-(void)getSilentModeForAllWithCompletion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
197
209- (void)syncSilentModeConversationsFromServerCompletion:(void (^_Nullable )(EMError *_Nullable error))completionBlock;
210
211
212
232- (void)setSilentModeForConversation:(NSString*_Nonnull)aConversationId
233 conversationType:(EMConversationType)aConversationType
234 params:(EMSilentModeParam*_Nullable )aParam
235 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
253- (void)getSilentModeForConversation:(NSString*_Nonnull)aConversationId
254 conversationType:(EMConversationType)aConversationType
255 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
256
274- (void)clearRemindTypeForConversation:(NSString*_Nonnull)aConversationId
275 conversationType:(EMConversationType)aConversationType
276 completion:(void (^_Nullable )(EMSilentModeResult *_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
277
294- (void)getSilentModeForConversations:(NSArray<EMConversation *>*_Nonnull)aConversationArray
295 completion:(void (^_Nullable )(NSDictionary<NSString*,EMSilentModeResult*>*_Nullable aResult, EMError *_Nullable aError))aCompletionBlock;
296
312- (void)setPreferredNotificationLanguage:(NSString*_Nullable)aLaguangeCode
313 completion:(void (^_Nullable )(EMError *_Nullable aError))aCompletionBlock;
326- (void)getPreferredNotificationLanguageCompletion:(void (^_Nullable )(NSString *_Nullable aLaguangeCode,EMError *_Nullable aError))aCompletionBlock;
327
343- (void)setPushTemplate:(NSString* _Nullable)aPushTemplateName
344 completion:(void (^ _Nullable)(EMError *_Nullable aError))aCompletionBlock;
357- (void)getPushTemplate:(void (^ _Nullable)(NSString *_Nullable aPushTemplateName, EMError *_Nullable aError))aCompletionBlock;
358
359
360
361@end
362
363NS_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