HyphenateChatSDK 4.12.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
69@property(nonatomic, copy, readonly) NSString *appId;
70
82@property(nonatomic, assign) BOOL enableConsoleLog;
83
97@property(nonatomic, assign) EMLogLevel logLevel;
98
110@property(nonatomic, assign) BOOL usingHttpsOnly;
111
127@property(nonatomic, assign) BOOL isAutoLogin;
128
140@property(nonatomic, assign) BOOL deleteMessagesOnLeaveGroup;
141
153@property(nonatomic, assign) BOOL deleteMessagesOnLeaveChatroom;
154
166@property(nonatomic, assign) BOOL canChatroomOwnerLeave;
167
179@property(nonatomic, assign) BOOL autoAcceptGroupInvitation;
180
192@property(nonatomic, assign) BOOL autoAcceptFriendInvitation;
193
205@property(nonatomic, assign) BOOL autoDownloadThumbnail;
206
218@property(nonatomic, assign) BOOL enableRequireReadAck;
230@property(nonatomic, assign) BOOL enableDeliveryAck;
231
244@property(nonatomic, assign) BOOL sortMessageByServerTime;
245
257@property(nonatomic, assign) BOOL isAutoTransferMessageAttachments;
258
272@property(nonatomic, copy) NSString *apnsCertName;
273
287@property(nonatomic, copy) NSString *pushKitCertName;
288
304@property(nonatomic) AreaCode area;
305
321@property(nonatomic) BOOL enableStatistics;
322
339@property(nonatomic) BOOL loadEmptyConversations;
340
352@property(nonatomic) NSInteger customOSType;
353
365@property(strong) NSString* customDeviceName;
366
384@property(nonatomic) BOOL useReplacedMessageContents;
385
400@property(nonatomic) BOOL includeSendMessageInMessageListener;
401
415@property(nonatomic) BOOL regardImportMessagesAsRead;
416
430@property(nonatomic) BOOL autoLoadConversations;
431
440@property (nonatomic) NSString * loginExtensionInfo;
441
454@property (nonatomic) BOOL workPathCopiable;
455
471+ (instancetype _Nonnull)optionsWithAppkey:(NSString * _Nonnull)aAppkey;
472
488+ (instancetype _Nonnull)optionsWithAppId:(NSString* _Nonnull)appId;
489@end
Definition: EMOptions.h:52
BOOL isAutoLogin
Definition: EMOptions.h:127
EMLogLevel logLevel
Definition: EMOptions.h:97
BOOL regardImportMessagesAsRead
Definition: EMOptions.h:415
NSString * apnsCertName
Definition: EMOptions.h:272
NSInteger customOSType
Definition: EMOptions.h:352
BOOL enableConsoleLog
Definition: EMOptions.h:82
BOOL autoDownloadThumbnail
Definition: EMOptions.h:205
BOOL includeSendMessageInMessageListener
Definition: EMOptions.h:400
BOOL enableDeliveryAck
Definition: EMOptions.h:230
NSString * appkey
Definition: EMOptions.h:60
BOOL autoLoadConversations
Definition: EMOptions.h:430
BOOL autoAcceptGroupInvitation
Definition: EMOptions.h:179
NSString * loginExtensionInfo
Definition: EMOptions.h:440
NSString * pushKitCertName
Definition: EMOptions.h:287
BOOL deleteMessagesOnLeaveChatroom
Definition: EMOptions.h:153
BOOL autoAcceptFriendInvitation
Definition: EMOptions.h:192
NSString * customDeviceName
Definition: EMOptions.h:365
AreaCode area
Definition: EMOptions.h:304
BOOL workPathCopiable
Definition: EMOptions.h:454
BOOL sortMessageByServerTime
Definition: EMOptions.h:244
NSString * appId
Definition: EMOptions.h:69
BOOL enableStatistics
Definition: EMOptions.h:321
BOOL deleteMessagesOnLeaveGroup
Definition: EMOptions.h:140
BOOL canChatroomOwnerLeave
Definition: EMOptions.h:166
BOOL enableRequireReadAck
Definition: EMOptions.h:218
BOOL loadEmptyConversations
Definition: EMOptions.h:339
BOOL usingHttpsOnly
Definition: EMOptions.h:110
BOOL useReplacedMessageContents
Definition: EMOptions.h:384
BOOL isAutoTransferMessageAttachments
Definition: EMOptions.h:257