NIMCustomMessageConfig class Null safety

Message configuration for the life cycle of messages and whether to push or count as unread.

Annotations
  • @JsonSerializable()

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
Specify whether messages are persisted on the server
final
enablePersist bool
Specify whether to persist messages after a user logs off
final
enablePush bool
Specify whether to enable message alert. If the value is set to true, alerts will show on the system notification bar when the message is received
final
enablePushNick bool
Specify whether to push the nickname (valid for iOS clients). If the value is set to true, iOS clients show the nickname when the message is received
final
enableRoaming bool
Specify whether message roaming is enabled
final
enableRoute bool
Specify whether to enable route. If the value is set to true, the message is sent following the default app route. If a endpoint URL is configured for data sync, the message will be synced.
final
enableSelfSync bool
Specify whether to sync a message with other devices. If multi-device login is enabled, a message sent on one device will be synced with other devices.
final
enableUnreadCount bool
Specify whether to count the message as unread. If the value is set to true, the unread count increments by 1 in the recent contacts list when the message is received.
final
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

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent 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