HyphenateChatSDK 3.9.9.1
EMOptions.h
1
15#import <Foundation/Foundation.h>
16
17#import "EMCommonDefs.h"
18
26typedef NS_ENUM(NSInteger, EMLogLevel)
27{
28 EMLogLevelDebug = 0,
29 EMLogLevelWarning,
30 EMLogLevelError
31} ;
32
33typedef NS_ENUM(NSInteger, AreaCode)
34{
35 AreaCodeCN = 1 << 0,
36 AreaCodeNA = 1 << 1,
37 AreaCodeEU = 1 << 2,
38 AreaCodeAS = 1 << 3,
39 AreaCodeJP = 1 << 4,
40 AreaCodeIN = 1 << 5,
41 AreaCodeGLOB = -1
42};
43
51@interface EMOptions : NSObject
52
60@property(nonatomic, copy, readonly) NSString *appkey;
61
69@property(nonatomic, assign) BOOL enableConsoleLog;
70
78@property(nonatomic, assign) EMLogLevel logLevel;
79
87@property(nonatomic, assign) BOOL usingHttpsOnly;
88
100@property(nonatomic, assign) BOOL isAutoLogin;
101
109@property(nonatomic, assign) BOOL deleteMessagesOnLeaveGroup;
110
118@property(nonatomic, assign) BOOL deleteMessagesOnLeaveChatroom;
119
127@property(nonatomic, assign) BOOL canChatroomOwnerLeave;
128
136@property(nonatomic, assign) BOOL autoAcceptGroupInvitation;
137
145@property(nonatomic, assign) BOOL autoAcceptFriendInvitation;
146
154@property(nonatomic, assign) BOOL autoDownloadThumbnail;
155
163@property(nonatomic, assign) BOOL enableRequireReadAck;
171@property(nonatomic, assign) BOOL enableDeliveryAck;
172
180@property(nonatomic, assign) BOOL sortMessageByServerTime;
181
189@property(nonatomic, assign) BOOL isAutoTransferMessageAttachments;
190
198@property(nonatomic, assign) BOOL enableFpa;
199
211@property(nonatomic, copy) NSString *apnsCertName;
212
224@property(nonatomic, copy) NSString *pushKitCertName;
225
241@property(nonatomic) AreaCode area;
242
254@property(nonatomic) BOOL enableStatistics;
255
271+ (instancetype _Nonnull)optionsWithAppkey:(NSString * _Nonnull)aAppkey;
272
273#pragma mark - EM_DEPRECATED_IOS 3.8.8
281@property(nonatomic, assign) BOOL isDeleteMessagesWhenExitGroup __deprecated_msg("Use deleteMessagesOnLeaveGroup instead");
282
290@property(nonatomic, assign) BOOL isDeleteMessagesWhenExitChatRoom
291 __deprecated_msg("Use deleteMessagesOnLeaveChatroom instead");
292
300@property(nonatomic, assign) BOOL isChatroomOwnerLeaveAllowed
301 __deprecated_msg("Use canChatroomOwnerLeave instead");
302
310@property(nonatomic, assign) BOOL isAutoAcceptGroupInvitation
311 __deprecated_msg("Use autoAcceptGroupInvitation instead");
312
320@property(nonatomic, assign) BOOL isAutoAcceptFriendInvitation
321 __deprecated_msg("Use autoAcceptFriendInvitation instead");
322
330@property(nonatomic, assign) BOOL isAutoDownloadThumbnail
331 __deprecated_msg("Use autoDownloadThumbnail instead");
332
333@end
Definition: EMOptions.h:52
BOOL isAutoLogin
Definition: EMOptions.h:100
EMLogLevel logLevel
Definition: EMOptions.h:78
NSString * apnsCertName
Definition: EMOptions.h:211
BOOL enableConsoleLog
Definition: EMOptions.h:69
BOOL autoDownloadThumbnail
Definition: EMOptions.h:154
BOOL enableDeliveryAck
Definition: EMOptions.h:171
NSString * appkey
Definition: EMOptions.h:60
BOOL isAutoDownloadThumbnail __deprecated_msg("Use autoDownloadThumbnail instead")
BOOL enableFpa
Definition: EMOptions.h:198
BOOL autoAcceptGroupInvitation
Definition: EMOptions.h:136
NSString * pushKitCertName
Definition: EMOptions.h:224
BOOL isAutoAcceptFriendInvitation __deprecated_msg("Use autoAcceptFriendInvitation instead")
BOOL deleteMessagesOnLeaveChatroom
Definition: EMOptions.h:118
BOOL autoAcceptFriendInvitation
Definition: EMOptions.h:145
BOOL isDeleteMessagesWhenExitChatRoom __deprecated_msg("Use deleteMessagesOnLeaveChatroom instead")
BOOL isAutoAcceptGroupInvitation __deprecated_msg("Use autoAcceptGroupInvitation instead")
BOOL isDeleteMessagesWhenExitGroup __deprecated_msg("Use deleteMessagesOnLeaveGroup instead")
AreaCode area
Definition: EMOptions.h:241
BOOL sortMessageByServerTime
Definition: EMOptions.h:180
BOOL enableStatistics
Definition: EMOptions.h:254
BOOL deleteMessagesOnLeaveGroup
Definition: EMOptions.h:109
BOOL isChatroomOwnerLeaveAllowed __deprecated_msg("Use canChatroomOwnerLeave instead")
BOOL canChatroomOwnerLeave
Definition: EMOptions.h:127
BOOL enableRequireReadAck
Definition: EMOptions.h:163
BOOL usingHttpsOnly
Definition: EMOptions.h:87
BOOL isAutoTransferMessageAttachments
Definition: EMOptions.h:189