EMOptions class
初始化SDK上下文的选项
Constructors
- EMOptions({@required String appKey })
Properties
- appKey ↔ String
-
read / write
- hashCode → int
-
The hash code for this object. [...]
read-only, inherited
- runtimeType → Type
-
A representation of the runtime type of the object.
read-only, inherited
Methods
-
allowChatRoomOwnerLeave(
bool isChatRoomOwnerLeaveAllowed) → void - 设置是否允许聊天室owner离开并删除会话记录
-
getAcceptInvitationAlways(
) → bool - 获取是否自动接受加好友邀请 默认true
-
getAutoLogin(
) → bool - 获取是否自动登录
-
getRequireAck(
) → bool - 获取已读确认设置
-
getRequireDeliveryAck(
) → bool - 获取送达确认设置
-
isAutoAcceptGroupInvitation(
) → bool - 获取是否自动接受加群邀请
-
isChatRoomOwnerLeaveAllowed(
) → bool - 是否允许聊天室owner离开
-
isDeleteMessagesAsExitGroup(
) → bool - 获取退出(主动和被动退出)群组时是否删除聊天消息
-
isSortMessageByServerTime(
) → bool - 是否按照server收到时间进行排序
-
setAcceptInvitationAlways(
bool acceptInvitationAlways) → void - 设置是否自动接受加好友邀请 默认true
-
setAutoAcceptGroupInvitation(
bool autoAcceptGroupInvitation) → void - 设置是否自动接受加群邀请
-
setAutoLogin(
bool autoLogin) → void - 设置是否自动登录
-
setDeleteMessagesAsExitGroup(
bool deleteMessagesAsExitGroup) → void - 设置退出(主动和被动退出)群组时是否删除聊天消息
-
setRequireAck(
bool requireAck) → void - 设置是否需要接受方已读确认
-
setRequireDeliveryAck(
bool requireDeliveryAck) → void - 设置是否需要接受方送达确认,默认false
-
setSortMessageByServerTime(
bool sortMessageByServerTime) → void - 设置server收到时间进行排序 默认是false
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited