EMChatManager class
Properties
- 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
-
addMessageListener(
EMMessageListener listener) → void -
添加消息监听
listener
-
deleteConversation(
{String userName, bool deleteMessages }) → Future< bool> -
删除与
userName
的对话, 如果deleteCoversations
设置为true,则还会删除消息。 -
getAllConversations(
) → Future< Map< String, EMConversation> > - 获取所有会话
-
getConversation(
{String id, EMConversationType type, bool createIfNotExists }) → Future< EMConversation> -
通过
id
获取会话 -
getMessage(
{String messageId }) → Future< EMMessage> -
通过
messageId
获取消息. -
getUnreadMessageCount(
) → Future< int> - 获取未读消息的计数。
-
loadAllConversations(
) → void - 加载所有会话
-
onConversationUpdate(
dynamic onConversationUpdate()) → void -
设置会话更新回调函数
onConversationUpdate
. -
removeMessageListener(
EMMessageListener listener) → void -
移除消息监听
listener
-
sendMessage(
EMMessage message, { dynamic onSuccess(), dynamic onProgress(int progress), dynamic onError(int errorCode, String desc) }) → void -
发送消息
message
. -
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a non-existent method or property is accessed. [...]
inherited
-
toString(
) → String -
Returns a string representation of this object.
inherited
Operators
-
operator ==(
dynamic other) → bool -
The equality operator. [...]
inherited