#import <EMOptions.h>
Whether to delete all the group messages when leaving the group.
- (Default)
YES
: Yes.
NO
: No.
Provided by category EMOptions(PrivateDeploy).
Whether to delete all the chat room messages when leaving the chat room.
- (Default)
YES
: Yes.
NO
: No.
Whether to allow the chat room owner to leave the chat room.
- (Default)
YES
: Yes.
NO
: No.
Whether to automatically accept group invitations.
- (Default)
YES
: Yes.
NO
: No.
Whether to automatically accept friend requests.
YES
: Yes.
- (Default)
NO
: No.
Whether to automatically download thumbnails of images and videos and voice messages.
- (Default)
YES
: Yes.
NO
: No.
+ (instancetype _Nonnull) optionsWithAppkey: |
|
(NSString *_Nonnull) |
aAppkey |
|
Gets an SDK options instance.
- Parameters
-
- Returns
- The SDK options instance.
- (NSString*) apnsCertName |
|
readwritenonatomiccopy |
The certificate name of Apple Push Notification Service (APNs).
This attribute is specific to APNs.
This attribute can be set only when you call initializeSDKWithOptions
. The attribute setting cannot be changed during app runtime.
The app key, which is the unique identifier of the project.
The area code.
This attribute is used to restrict the scope of accessible edge nodes. The default value is AreaCodeGLOB
.
This attribute can be set only when you call initializeSDKWithOptions
. The attribute setting cannot be changed during the app runtime.
- (BOOL) autoAcceptFriendInvitation |
|
readwritenonatomicassign |
Whether to automatically accept friend requests.
- (Default)
YES
: Yes.
NO
: No.
- (BOOL) autoAcceptGroupInvitation |
|
readwritenonatomicassign |
Whether to automatically accept group invitations.
- (Default)
YES
: Yes.
NO
: No.
- (BOOL) autoDownloadThumbnail |
|
readwritenonatomicassign |
Whether to automatically download thumbnails of images and videos and voice messages.
- (Default)
YES
: Yes.
NO
: No.
- (BOOL) autoLoadConversations |
|
readwritenonatomicassign |
Whether to automatically load the conversation list:
- YES:Automatically load.
- (Default) YES:Automatically load.
- (BOOL) canChatroomOwnerLeave |
|
readwritenonatomicassign |
Whether to allow the chat room owner to leave the room.
- (Default)
YES
: Yes.
NO
: No.
- (NSString*) customDeviceName |
|
readwriteatomicstrong |
The custom device name.
This attribute can be set only when you call the initializeSDKWithOptions
method. The attribute setting cannot be changed during the app runtime.
- (NSInteger) customOSType |
|
readwritenonatomicassign |
The custom system type.
This attribute can be set only when you call the initializeSDKWithOptions
method. The attribute setting cannot be changed during app runtime.
- (BOOL) deleteMessagesOnLeaveChatroom |
|
readwritenonatomicassign |
Whether to delete all the chat room messages when leaving the chat room.
- (Default)
YES
: Yes.
NO
: No.
- (BOOL) deleteMessagesOnLeaveGroup |
|
readwritenonatomicassign |
Whether to delete all the group messages when leaving the group.
- (Default)
YES
: Yes.
NO
: No.
- (BOOL) enableConsoleLog |
|
readwritenonatomicassign |
Whether to print logs on the Console.
YES
: Yes.
- (Default)
NO
: No.
- (BOOL) enableDeliveryAck |
|
readwritenonatomicassign |
Whether to send the message delivery receipt.
YES
: Upon the reception of a one-to-one message, the SDK automatically sends a delivery receipt.
NO
: No.
- (BOOL) enableRequireReadAck |
|
readwritenonatomicassign |
Whether to receive the message read receipt.
- (Default)
YES
: Yes.
NO
: No.
- (BOOL) enableStatistics |
|
readwritenonatomicassign |
Whether to enable message statistics.
YES
: Yes.
- (Default)
NO
: No.
This attribute can be set only when you call initializeSDKWithOptions
. The attribute setting cannot be changed during the app runtime.
- (BOOL) enableTLSConnection |
|
readwritenonatomicassign |
Whether to enable TLS encryption when connecting to chatServer.The default value is NO.
This property is effective only when enableDnsConfig
is NO
. Can only be set when initializing the SDK with initializeSDKWithOptions: , cannot be altered in runtime
Provided by category EMOptions(PrivateDeploy).
- (BOOL) includeSendMessageInMessageListener |
|
readwritenonatomicassign |
Whether the sent message is included in ChatManagerDelegate::messagesDidReceive
.
- YES:Yes. Besides the received message, the sent message is also included in
ChatManagerDelegate::messagesDidReceive
.
- (Default) NO:No. Only the received message is included in
ChatManagerDelegate::messagesDidReceive
.
Whether to enable automatic login. The default value is YES
.
- (Default)
YES
: Yes.
NO
: No.
You need to set this parameter before the SDK is initialized; otherwise, the setting does not take effect.
- (BOOL) isAutoTransferMessageAttachments |
|
readwritenonatomicassign |
Whether to automatically upload or download the attachment in the message.
- (Default)
YES
: Yes.
NO
: No.
- (BOOL) loadEmptyConversations |
|
readwritenonatomicassign |
Whether to include empty conversations when the SDK loads conversations
YES
: Empty conversations are included.
(Default) NO
: Empty conversations are excluded.
This attribute can be set only when you call the initializeSDKWithOptions
method. The attribute setting cannot be changed during app runtime.
The log level.
EMLogLevelDebug
: All logs;
EMLogLevelWarning
: Warnings and errors.
EMLogLevelError
: Errors.
- (NSString*) pushKitCertName |
|
readwritenonatomiccopy |
The certificate name of Apple PushKit Service.
This attribute is specific to Apple PushKit Service.
This attribute can be set only when you call initializeSDKWithOptions
. The attribute setting cannot be changed during app runtime.
- (BOOL) regardImportMessagesAsRead |
|
readwritenonatomicassign |
Whether to set messages from the server side as read:
- (BOOL) sortMessageByServerTime |
|
readwritenonatomicassign |
Whether to sort messages by the server's reception time when loading messages from the database.
- (Default)
YES
: Yes. Messages are sorted by the time when the server receives them.
NO
: No.
- (BOOL) useReplacedMessageContents |
|
readwritenonatomicassign |
Whether the server returns the sender the text message with the content replaced during text moderation:
- YES:Return the adjusted message to the sender.
- (Default) NO:Return the original message to the sender.
This attribute can be set only with the initializeSDKWithOptions
method. The attribute setting cannot be changed during the app runtime.
Whether to only use the HTTPS protocol.
YES
: Yes.
- (Default)
NO
: No.
The documentation for this class was generated from the following file: