ZIMMessagePriority enum

The priority of the message.

Description: Identifies the priority of a message.

Use cases: It can be used to set the priority when a message is sent. The higher the priority, the higher the reliability. Low priority may be discarded due to weak network.

Caution: The higher the priority, the higher the cost.

Inheritance

Constructors

ZIMMessagePriority()
const

Values

low → const ZIMMessagePriority

Description: Low priority.

Use cases: Generally used to send unimportant messages such as barrage message in a room.

medium → const ZIMMessagePriority

Description: Medium priority.

Use cases: Generally used to send regular chat messages.

high → const ZIMMessagePriority

Description: High priority.

Use cases: Generally used to send important information such as gifts and rewards in a room.

Properties

hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
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
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ZIMMessagePriority>
A constant List of the values in this enum, in order of their declaration.