EMMessage class

Constructors

EMMessage.createCmdSendMessage({required String username, required dynamic action})
构造发送的cmd消息
EMMessage.createCustomSendMessage({required String username, required dynamic event, Map<String, String>? params})
构造发送的自定义消息
EMMessage.createFileSendMessage({required String username, required String filePath, String displayName = ''})
构造发送的文件消息
EMMessage.createImageSendMessage({required String username, required String filePath, String displayName = '', String thumbnailLocalPath = '', bool sendOriginalImage = false, double width = 0, double height = 0})
构造发送的图片消息
EMMessage.createLocationSendMessage({required String username, required double latitude, required double longitude, String address = ''})
构造发送的位置消息
EMMessage.createReceiveMessage({required EMMessageBody? body, EMMessageDirection direction = EMMessageDirection.RECEIVE})
构造接收的消息
EMMessage.createSendMessage({required EMMessageBody? body, EMMessageDirection direction = EMMessageDirection.SEND, String? to, bool? hasRead = true})
构造发送的消息
EMMessage.createTxtSendMessage({required String username, String content = ""})
构造发送的文字消息
EMMessage.createVideoSendMessage({required String username, required String filePath, String displayName = '', int duration = 0, String thumbnailLocalPath = '', double width = 0, double height = 0})
构造发送的视频消息
EMMessage.createVoiceSendMessage({required String username, required String filePath, int duration = 0, String displayName = ''})
构造发送的音频消息
EMMessage.fromJson(Map<String, dynamic> map)
factory

Properties

attributes Map
getter/setter pair
body EMMessageBody?
getter/setter pair
chatType EMMessageChatType
getter/setter pair
conversationId String?
getter/setter pair
direction EMMessageDirection
getter/setter pair
from String?
getter/setter pair
hasDeliverAck bool?
getter/setter pair
hashCode int
The hash code for this object.
no setterinherited
hasRead bool?
getter/setter pair
hasReadAck bool?
getter/setter pair
listener EMMessageStatusListener?
getter/setter pair
localTime int?
getter/setter pair
msgId String?
no setter
msgLocalId String?
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
serverTime int?
getter/setter pair
status EMMessageStatus
getter/setter pair
to String?
getter/setter pair

Methods

dispose() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
setMessageListener(EMMessageStatusListener? listener) → void
toJson() Map<String, dynamic>
toString() String
A string representation of this object.
override

Operators

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