HyphenateSDK  3.6.1
EMOptions.h
1 
15 #import <Foundation/Foundation.h>
16 
17 #import "EMCommonDefs.h"
18 
26 typedef enum {
27  EMLogLevelDebug = 0,
28  EMLogLevelWarning,
29  EMLogLevelError
30 } EMLogLevel;
31 
39 @interface EMOptions : NSObject
40 
48 @property (nonatomic, copy, readonly) NSString *appkey;
49 
57 @property (nonatomic, assign) BOOL enableConsoleLog;
58 
66 @property (nonatomic, assign) EMLogLevel logLevel;
67 
75 @property (nonatomic, assign) BOOL usingHttpsOnly;
76 
88 @property (nonatomic, assign) BOOL isAutoLogin;
89 
97 @property (nonatomic, assign) BOOL isDeleteMessagesWhenExitGroup;
98 
106 @property (nonatomic, assign) BOOL isDeleteMessagesWhenExitChatRoom;
107 
115 @property (nonatomic, assign) BOOL isChatroomOwnerLeaveAllowed;
116 
124 @property (nonatomic, assign) BOOL isAutoAcceptGroupInvitation;
125 
133 @property (nonatomic, assign) BOOL isAutoAcceptFriendInvitation;
134 
142 @property (nonatomic, assign) BOOL isAutoDownloadThumbnail;
143 
151 @property (nonatomic, assign) BOOL enableDeliveryAck;
152 
160 @property (nonatomic, assign) BOOL sortMessageByServerTime;
161 
169 @property (nonatomic, assign) BOOL isAutoTransferMessageAttachments;
170 
182 @property (nonatomic, copy) NSString *apnsCertName;
183 
199 + (instancetype)optionsWithAppkey:(NSString *)aAppkey;
200 
201 #pragma mark - EM_DEPRECATED_IOS 3.2.3
202 
214 @property (nonatomic, assign) BOOL isSandboxMode EM_DEPRECATED_IOS(3_0_0, 3_2_2);
215 
216 #pragma mark - EM_DEPRECATED_IOS 3.2.2
217 
225 @property (nonatomic, assign) BOOL usingHttps EM_DEPRECATED_IOS(3_0_0, 3_2_1);
226 
227 @end
BOOL enableConsoleLog
Definition: EMOptions.h:57
BOOL sortMessageByServerTime
Definition: EMOptions.h:160
NSString * appkey
Definition: EMOptions.h:48
BOOL usingHttpsOnly
Definition: EMOptions.h:75
BOOL enableDeliveryAck
Definition: EMOptions.h:151
BOOL isAutoTransferMessageAttachments
Definition: EMOptions.h:169
EMLogLevel logLevel
Definition: EMOptions.h:66
BOOL isSandboxMode EM_DEPRECATED_IOS(3_0_0, 3_2_2)
BOOL isAutoAcceptFriendInvitation
Definition: EMOptions.h:133
BOOL isDeleteMessagesWhenExitChatRoom
Definition: EMOptions.h:106
BOOL isChatroomOwnerLeaveAllowed
Definition: EMOptions.h:115
BOOL isAutoLogin
Definition: EMOptions.h:88
BOOL isDeleteMessagesWhenExitGroup
Definition: EMOptions.h:97
BOOL isAutoDownloadThumbnail
Definition: EMOptions.h:142
BOOL isAutoAcceptGroupInvitation
Definition: EMOptions.h:124
Definition: EMOptions.h:39
NSString * apnsCertName
Definition: EMOptions.h:182