EMOptions class
Constructors
- EMOptions({required String? appKey})
-
EMOptions.fromJson(Map<
String, dynamic> json) -
factory
Properties
- acceptInvitationAlways ↔ bool?
-
自动同意好友申请,当设置为
true
时, 您在线时收到好友申请将自动同意, 如您不在线,等您上线后会自动同意。getter/setter pair - appKey ↔ String?
-
环信 appKey, 必须设置。
getter/setter pair
- autoAcceptGroupInvitation ↔ bool?
-
是否自动同意群邀请,当设置为
true
时, 您在线时收到加群邀请会自动同意, 如您不在线,等您上线后会自动同意。getter/setter pair - autoLogin ↔ bool?
-
是否自动登录,当为
true
时,首次登录成功后,您再次启动App时,sdk会在 初始化后自定为您登录上一次登录的账号。getter/setter pair - debugModel ↔ bool?
-
getter/setter pair
- deleteMessagesAsExitChatRoom ↔ bool?
-
退出聊天室时是否删除相应会话, 当为
true
时, 您离开聊天室后对应的聊天室消息会被删除。getter/setter pair - deleteMessagesAsExitGroup ↔ bool?
-
退出群组时是否删除相应会话, 当为
true
时, 您离开群组后对应的群消息会被删除。getter/setter pair - dnsUrl ↔ String?
-
getter/setter pair
- enableDNSConfig ↔ bool?
-
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- imPort ↔ int?
-
getter/setter pair
- imServer ↔ String?
-
getter/setter pair
- isAutoDownload ↔ bool?
-
getter/setter pair
- isChatRoomOwnerLeaveAllowed ↔ bool?
-
是否允许聊天室创建者退出聊天室,当为
true
时, 聊天室创建者可以退出聊天室。getter/setter pair - pushConfig ↔ EMPushConfig?
-
getter/setter pair
- requireAck ↔ bool?
-
是否允许发送已读回执,默认值为
ture
, 当为false时,当您通过EMChatManager调用sendMessageReadAck无效;getter/setter pair - requireDeliveryAck ↔ bool?
-
是否发送已送达回执,默认为
false
, 当为ture
时, 您收到消息后会自动相对方发送已送达回执。 对方可以通过onMessagesDelivered()
方法监听;getter/setter pair - restServer ↔ String?
-
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- serverTransfer ↔ bool?
-
getter/setter pair
- sortMessageByServerTime ↔ bool?
-
消息按照服务器时间排序, 当为
true
时,您从数据库中 获取的消息是按照服务器时间排序的,否则是按照消息的本地时间排序。getter/setter pair - usingHttpsOnly ↔ bool?
-
getter/setter pair
Methods
-
customServerInfo(
{required String customRestServer, required String customImServer, required int customImPort}) → void - 设置自定义server地址
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toJson(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited