ZIMMessageType enum
The type of the message.
Description: Identifies the type of current message.
Use cases: It can be used to determine what type of message this message is.
Values
- unknown → const ZIMMessageType
-
Description: Unknown message.
Use cases: A message of an unknown type is received, indicating that the sender may have sent a message type that the user does not support, and the user needs to be advised to update the version.
- text → const ZIMMessageType
-
Description: Normal text message.
Use cases: Can be used to deliver ordinary text messages.
- command → const ZIMMessageType
-
Description: Custom binary message.
Use cases: Can be used to transfer custom binary messages. This message type does not support offline messages and local storage.
- barrage → const ZIMMessageType
-
Description: Barrage message.
Use cases: Can be used for the barrage sent by the live room. This message type does not support offline messages and local storage.
- image → const ZIMMessageType
-
Description: Image message.
Use cases: Can be used to send image messages, only ".jpg", ".jpeg", ".png", ".bmp", ".gif", ".tiff" image types are supported. After sending the image, the server will generate a large image and a thumbnail of the original image.
- file → const ZIMMessageType
-
Description: File message.
Use cases: For sending file messages, no file type restrictions.
- audio → const ZIMMessageType
-
Description: Audio message.
Use cases: For sending audio messages, only ".mp3" audio type is supported.
- video → const ZIMMessageType
-
Description: Video message.
Use cases: For sending video messages, only ".mp4", ".mov" video types are supported. After sending the video message, the server will generate the first frame of the video file.
- system → const ZIMMessageType
-
Description: Systemmessage.
Use cases: It is often used for local messages that need to be customized in the business layer, and is usually used to insert local message interfaces.
- revoke → const ZIMMessageType
-
Description: Reovked message.
- custom → const ZIMMessageType
-
Description: Custom message.
- tips → const ZIMMessageType
-
Description: Tips message.
- combine → const ZIMMessageType
-
Description: Combined message.
Properties
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<
ZIMMessageType> - A constant List of the values in this enum, in order of their declaration.