HyphenateSDK  3.1.4
Class Methods | Properties | List of all members
EMOptions Class Reference

#import <EMOptions.h>

Inheritance diagram for EMOptions:

Class Methods

(instancetype) + optionsWithAppkey:
 

Properties

NSString * appkey
 
BOOL enableConsoleLog
 
EMLogLevel logLevel
 
BOOL usingHttps
 
BOOL isSandboxMode
 
BOOL isAutoLogin
 
BOOL isDeleteMessagesWhenExitGroup
 
BOOL isDeleteMessagesWhenExitChatRoom
 
BOOL isChatroomOwnerLeaveAllowed
 
BOOL isAutoAcceptGroupInvitation
 
BOOL isAutoAcceptFriendInvitation
 
BOOL enableDeliveryAck
 
BOOL sortMessageByServerTime
 
NSString * apnsCertName
 
BOOL enableDnsConfig
 
int chatPort
 
NSString * chatServer
 
NSString * restServer
 

Detailed Description

SDK setting options

Method Documentation

+ (instancetype) optionsWithAppkey: (NSString *)  aAppkey

Get SDK setting options instance

Parameters
aAppkeyApp‘s unique identifier
Returns
SDK’s setting options instance

Property Documentation

- (NSString*) apnsCertName
readwritenonatomicstrong

iOS only, push certificate name

Can only set when initialize SDK [EMClient initializeSDKWithOptions:], can't change it in runtime

- (NSString*) appkey
readnonatomicstrong

Application's unique identifier

- (int) chatPort
readwritenonatomicassign

IM server port

It's effective only when enableDnsConfig is NO. Can only set when initialize SDK [EMClient initializeSDKWithOptions:], can't change it in runtime

Provided by category EMOptions(PrivateDeploy).

- (NSString*) chatServer
readwritenonatomicstrong

IM server

It's effective only when enableDnsConfig is NO. Can only set when initialize SDK [EMClient initializeSDKWithOptions:], can't change it in runtime

Provided by category EMOptions(PrivateDeploy).

- (BOOL) enableConsoleLog
readwritenonatomicassign

Whether print log to console, default is NO

- (BOOL) enableDeliveryAck
readwritenonatomicassign

Whether send delivery ack, default is NO, SDK will automatically send delivery ack when receive a single chat message if it's set to YES

- (BOOL) enableDnsConfig
readwritenonatomicassign

Whether allow to use DNS, default is YES

Can only set when initialize SDK [EMClient initializeSDKWithOptions:], can't change it in runtime

Provided by category EMOptions(PrivateDeploy).

- (BOOL) isAutoAcceptFriendInvitation
readwritenonatomicassign

Whether automatically accept friend invitation, default is NO

- (BOOL) isAutoAcceptGroupInvitation
readwritenonatomicassign

Whether automatically accept group invitation, default is YES

- (BOOL) isAutoLogin
readwritenonatomicassign

Whether auto login, default is YES

Value will be saved to the local. When initialization EMOptions, the first to get the value of the local saved

- (BOOL) isChatroomOwnerLeaveAllowed
readwritenonatomicassign

Whether chatroom's owner can leave chatroom, default is YES

- (BOOL) isDeleteMessagesWhenExitChatRoom
readwritenonatomicassign

Whether delete all of the chatroom's message when leave chatroom, default is YES

- (BOOL) isDeleteMessagesWhenExitGroup
readwritenonatomicassign

Whether delete all of the group's message when leave group, default is YES

- (BOOL) isSandboxMode
readwritenonatomicassign

Whether using development environment, default is NO

Can only set when initialize sdk [EMClient initializeSDKWithOptions:], can't change it in runtime

- (EMLogLevel) logLevel
readwritenonatomicassign

Log output level, default is EMLogLevelDebug

- (NSString*) restServer
readwritenonatomicstrong

REST server

It's effective only when enableDnsConfig is NO. Can only set when initialize SDK [EMClient initializeSDKWithOptions:], can't change it in runtime

Provided by category EMOptions(PrivateDeploy).

- (BOOL) sortMessageByServerTime
readwritenonatomicassign

Whether sort message by server time when load message from database, default is YES, sort by server time

- (BOOL) usingHttps
readwritenonatomicassign

Whether using https, default is YES


The documentation for this class was generated from the following file: