EMChatManagerListener

EMChatManagerListener

new EMChatManagerListener()

Source:
EMChatManagerListener constructor.

Methods

onMessageAttachmentsStatusChanged(callback) → {void}

Source:
Callback user when attachment download status changed.
Parameters:
Name Type Description
callback EMChatManagerListener~MessageAttachmentsStatusChanged 回调函数
Returns:
Type
void

onMessageStatusChanged(callback) → {void}

Source:
Callback user when send message successed or failed.
Parameters:
Name Type Description
callback EMChatManagerListener~ReceiveMessages 回调函数
Returns:
Type
void

onReceiveCmdMessages(callback) → {void}

Source:
Callback user when receive a list of command messages from remote peer.
Parameters:
Name Type Description
callback EMChatManagerListener~ReceiveMessages 回调函数
Returns:
Type
void

onReceiveHasDeliveredAcks(callback) → {void}

Source:
Callback user when receive delivery successed ack for messages.
Parameters:
Name Type Description
callback EMChatManagerListener~ReceiveMessages 回调函数
Returns:
Type
void

onReceiveHasReadAcks(callback) → {void}

Source:
Callback user when receive read ack for messages.
Parameters:
Name Type Description
callback EMChatManagerListener~ReceiveMessages 回调函数
Returns:
Type
void

onReceiveMessages(callback) → {void}

Source:
Callback user when receive a list of messages from remote peer.
Parameters:
Name Type Description
callback EMChatManagerListener~ReceiveMessages 回调函数
Returns:
Type
void

onReceiveRecallMessages(callback) → {void}

Source:
Callback user when receive recall for messages.
Parameters:
Name Type Description
callback EMChatManagerListener~ReceiveMessages 回调函数
Returns:
Type
void

onUpdateConversationList(callback) → {void}

Source:
Callback user when conversation list are changed.
Parameters:
Name Type Description
callback EMChatManagerListener~ConversationList 回调函数
Returns:
Type
void

(inner) ConversationList(conversations) → {void}

Source:
Parameters:
Name Type Description
conversations Array EMConversation array.
Returns:
Type
void

(inner) MessageAttachmentsStatusChanged(message, error) → {void}

Source:
Parameters:
Name Type Description
message EMMessage EMMessage.
error EMError EMError
Returns:
Type
void

(inner) ReceiveMessages(messages) → {void}

Source:
Parameters:
Name Type Description
messages Array EMMessage array.
Returns:
Type
void