HyphenateChatSDK 4.10.0
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
73@property(nonatomic, assign) BOOL enableConsoleLog;
74
88@property(nonatomic, assign) EMLogLevel logLevel;
89
101@property(nonatomic, assign) BOOL usingHttpsOnly;
102
118@property(nonatomic, assign) BOOL isAutoLogin;
119
131@property(nonatomic, assign) BOOL deleteMessagesOnLeaveGroup;
132
144@property(nonatomic, assign) BOOL deleteMessagesOnLeaveChatroom;
145
157@property(nonatomic, assign) BOOL canChatroomOwnerLeave;
158
170@property(nonatomic, assign) BOOL autoAcceptGroupInvitation;
171
183@property(nonatomic, assign) BOOL autoAcceptFriendInvitation;
184
196@property(nonatomic, assign) BOOL autoDownloadThumbnail;
197
209@property(nonatomic, assign) BOOL enableRequireReadAck;
221@property(nonatomic, assign) BOOL enableDeliveryAck;
222
235@property(nonatomic, assign) BOOL sortMessageByServerTime;
236
248@property(nonatomic, assign) BOOL isAutoTransferMessageAttachments;
249
263@property(nonatomic, copy) NSString *apnsCertName;
264
278@property(nonatomic, copy) NSString *pushKitCertName;
279
295@property(nonatomic) AreaCode area;
296
312@property(nonatomic) BOOL enableStatistics;
313
330@property(nonatomic) BOOL loadEmptyConversations;
331
343@property(nonatomic) NSInteger customOSType;
344
356@property(strong) NSString* customDeviceName;
357
375@property(nonatomic) BOOL useReplacedMessageContents;
376
391@property(nonatomic) BOOL includeSendMessageInMessageListener;
392
406@property(nonatomic) BOOL regardImportMessagesAsRead;
407
421@property(nonatomic) BOOL autoLoadConversations;
422
431@property (nonatomic) NSString * loginExtensionInfo;
432
445@property (nonatomic) BOOL workPathCopiable;
446
462+ (instancetype _Nonnull)optionsWithAppkey:(NSString * _Nonnull)aAppkey;
463
464#pragma mark - EM_DEPRECATED_IOS 3.8.8
476@property(nonatomic, assign) BOOL isDeleteMessagesWhenExitGroup __deprecated_msg("Use deleteMessagesOnLeaveGroup instead");
477
489@property(nonatomic, assign) BOOL isDeleteMessagesWhenExitChatRoom
490 __deprecated_msg("Use deleteMessagesOnLeaveChatroom instead");
491
503@property(nonatomic, assign) BOOL isChatroomOwnerLeaveAllowed
504 __deprecated_msg("Use canChatroomOwnerLeave instead");
505
517@property(nonatomic, assign) BOOL isAutoAcceptGroupInvitation
518 __deprecated_msg("Use autoAcceptGroupInvitation instead");
519
531@property(nonatomic, assign) BOOL isAutoAcceptFriendInvitation
532 __deprecated_msg("Use autoAcceptFriendInvitation instead");
533
545@property(nonatomic, assign) BOOL isAutoDownloadThumbnail
546 __deprecated_msg("Use autoDownloadThumbnail instead");
547
548@end
Definition: EMOptions.h:52
BOOL isAutoLogin
Definition: EMOptions.h:118
EMLogLevel logLevel
Definition: EMOptions.h:88
BOOL regardImportMessagesAsRead
Definition: EMOptions.h:406
NSString * apnsCertName
Definition: EMOptions.h:263
NSInteger customOSType
Definition: EMOptions.h:343
BOOL enableConsoleLog
Definition: EMOptions.h:73
BOOL autoDownloadThumbnail
Definition: EMOptions.h:196
BOOL includeSendMessageInMessageListener
Definition: EMOptions.h:391
BOOL enableDeliveryAck
Definition: EMOptions.h:221
NSString * appkey
Definition: EMOptions.h:60
BOOL isAutoDownloadThumbnail __deprecated_msg("Use autoDownloadThumbnail instead")
BOOL autoLoadConversations
Definition: EMOptions.h:421
BOOL autoAcceptGroupInvitation
Definition: EMOptions.h:170
NSString * loginExtensionInfo
Definition: EMOptions.h:431
NSString * pushKitCertName
Definition: EMOptions.h:278
BOOL isAutoAcceptFriendInvitation __deprecated_msg("Use autoAcceptFriendInvitation instead")
BOOL deleteMessagesOnLeaveChatroom
Definition: EMOptions.h:144
BOOL autoAcceptFriendInvitation
Definition: EMOptions.h:183
BOOL isDeleteMessagesWhenExitChatRoom __deprecated_msg("Use deleteMessagesOnLeaveChatroom instead")
BOOL isAutoAcceptGroupInvitation __deprecated_msg("Use autoAcceptGroupInvitation instead")
NSString * customDeviceName
Definition: EMOptions.h:356
BOOL isDeleteMessagesWhenExitGroup __deprecated_msg("Use deleteMessagesOnLeaveGroup instead")
AreaCode area
Definition: EMOptions.h:295
BOOL workPathCopiable
Definition: EMOptions.h:445
BOOL sortMessageByServerTime
Definition: EMOptions.h:235
BOOL enableStatistics
Definition: EMOptions.h:312
BOOL deleteMessagesOnLeaveGroup
Definition: EMOptions.h:131
BOOL isChatroomOwnerLeaveAllowed __deprecated_msg("Use canChatroomOwnerLeave instead")
BOOL canChatroomOwnerLeave
Definition: EMOptions.h:157
BOOL enableRequireReadAck
Definition: EMOptions.h:209
BOOL loadEmptyConversations
Definition: EMOptions.h:330
BOOL usingHttpsOnly
Definition: EMOptions.h:101
BOOL useReplacedMessageContents
Definition: EMOptions.h:375
BOOL isAutoTransferMessageAttachments
Definition: EMOptions.h:248