NIMCustomMessageConfig class
消息的配置选项,主要用于设定消息的声明周期,是否需要推送,是否需要计入未读数等。
- Annotations
Constructors
- NIMCustomMessageConfig({bool enableHistory = true, bool enableRoaming = true, bool enableSelfSync = true, bool enablePush = true, bool enablePushNick = true, bool enableUnreadCount = true, bool enableRoute = true, bool enablePersist = true})
-
NIMCustomMessageConfig.fromMap(Map<
String, dynamic> map) -
factory
Properties
- enableHistory → bool
-
该消息是否要保存到服务器
final
- enablePersist → bool
-
该消息是否要存离线
final
- enablePush → bool
-
该消息是否需要离线推送和消息提醒,如果为true,那么对方收到消息后,系统通知栏会有提醒
final
- enablePushNick → bool
-
该消息是否需要推送昵称(针对iOS客户端有效),如果为true,那么对方收到消息后,iOS端将显示推送昵称
final
- enableRoaming → bool
-
该消息是否需要漫游
final
- enableRoute → bool
-
该消息是否支持路由,如果为true,默认按照app的路由开关(如果有配置抄送地址则将抄送该消息),该字段web端不支持
final
- enableSelfSync → bool
-
多端同时登录时,发送一条自定义消息后,是否要同步到其他同时登录的客户端
final
- enableUnreadCount → bool
-
该消息是否要计入未读数,如果为true,那么对方收到消息后,最近联系人列表中未读数加1
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toMap(
) → Map< String, dynamic> -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited