hyphenate_SDK4.0 4.8.0
hyphenate java IM SDK
|
Public Member Functions | |
void | onContactEvent (int event, String target, String ext) |
void | onGroupEvent (int event, String target, List< String > usernames) |
default void | onChatThreadEvent (int event, String target, List< String > usernames) |
default void | onMessageRemoved (String conversationId, String deviceId) |
default void | onConversationEvent (int event, String conversationId, EMConversation.EMConversationType type) |
Created by linan on 17/4/17.
The multi-device event listener.
The listener listens for callbacks for the current user's actions on other devices, including contact changes and group changes.
Adds a multi-device event listener:
Removes a multi-device event listener:
default void com.hyphenate.EMMultiDeviceListener.onChatThreadEvent | ( | int | event, |
String | target, | ||
List< String > | usernames | ||
) |
The multi-device message thread event.
event | The message thread event. See EMMultiDeviceListener. |
target | The message thread ID. |
usernames | The operation target ID(s). |
void com.hyphenate.EMMultiDeviceListener.onContactEvent | ( | int | event, |
String | target, | ||
String | ext | ||
) |
The multi-device contact event.
event | The contact event. See EMMultiDeviceListener. |
target | The user ID of the contact. |
ext | The extension information. |
default void com.hyphenate.EMMultiDeviceListener.onConversationEvent | ( | int | event, |
String | conversationId, | ||
EMConversation.EMConversationType | type | ||
) |
The multi-device conversation event.
event | The conversation event. See CONVERSATION_PINNED, CONVERSATION_UNPINNED, CONVERSATION_MARK_UPDATE and CONVERSATION_DELETED. |
conversationId | The conversation ID. |
type | The conversation type. See EMConversation.EMConversationType. |
void com.hyphenate.EMMultiDeviceListener.onGroupEvent | ( | int | event, |
String | target, | ||
List< String > | usernames | ||
) |
The multi-device group event.
event | The group event. See EMMultiDeviceListener. |
target | The group ID. |
usernames | The operation target ID(s). |
default void com.hyphenate.EMMultiDeviceListener.onMessageRemoved | ( | String | conversationId, |
String | deviceId | ||
) |
The multi-device event of historical message deletion from the server.
conversationId | The conversation ID. |
deviceId | The device ID. |
int com.hyphenate.EMMultiDeviceListener.CONTACT_ACCEPT = 3 |
The current user accepted a friend request on another device.
int com.hyphenate.EMMultiDeviceListener.CONTACT_ALLOW = 6 |
The current user removed a contact from the block list on another device.
int com.hyphenate.EMMultiDeviceListener.CONTACT_BAN = 5 |
The current user added a contact to the block list on another device.
int com.hyphenate.EMMultiDeviceListener.CONTACT_DECLINE = 4 |
The current user declined a friend request on another device.
int com.hyphenate.EMMultiDeviceListener.CONTACT_REMOVE = 2 |
The current user removed a contact on another device.
int com.hyphenate.EMMultiDeviceListener.CONVERSATION_DELETED = 62 |
The current user removed a conversation from the server.
int com.hyphenate.EMMultiDeviceListener.CONVERSATION_MARK_UPDATE = 63 |
The conversation meter of the current user on another device is changed.
int com.hyphenate.EMMultiDeviceListener.CONVERSATION_MUTE_INFO_CHANGED = 64 |
The current user set the conversation mute on another device. The user needs to call the EMChatManager#getAllConversations() method to re-obtain the conversation list to refresh the UI.
int com.hyphenate.EMMultiDeviceListener.CONVERSATION_PINNED = 60 |
The current user pinned a conversation on another device.
int com.hyphenate.EMMultiDeviceListener.CONVERSATION_UNPINNED = 61 |
The current user unpinned a conversation on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_ADMIN = 26 |
The current user added an admin on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_MUTE = 28 |
The current user muted a member on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_ADD_USER_WHITE_LIST = 30 |
The current user adds other users to the group allow list on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_ALL_BAN = 32 |
The current user muted all members of a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_ALLOW = 22 |
The current user removed a member from a group block list on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY = 14 |
The current user requested to join a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY_ACCEPT = 15 |
The current user accepted a group request on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_APPLY_DECLINE = 16 |
The current user declined a group request on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_ASSIGN_OWNER = 25 |
The current user transferred the group ownership on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_BAN = 21 |
The current user added a member to a group block list on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_BLOCK = 23 |
The current user blocked a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_CREATE = 10 |
The current user created a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_DESTROY = 11 |
The current user destroyed a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE = 17 |
The current user invited a user to join the group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE_ACCEPT = 18 |
The current user accepted a group invitation on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_INVITE_DECLINE = 19 |
The current user declined a group invitation on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_JOIN = 12 |
The current user joined a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_KICK = 20 |
The current user kicked a member out of a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_LEAVE = 13 |
The current user left a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_METADATA_CHANGED = 52 |
The current user modified custom attributes of a group member on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_ADMIN = 27 |
The current user removed an admin on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_ALL_BAN = 33 |
The current user unmuted all members of a group on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_MUTE = 29 |
The current user unmuted a member on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_REMOVE_USER_WHITE_LIST = 31 |
The current user removes other users from the group allow list on another device.
int com.hyphenate.EMMultiDeviceListener.GROUP_UNBLOCK = 24 |
The current user unblocked a group on another device.
int com.hyphenate.EMMultiDeviceListener.THREAD_CREATE = 40 |
The current user created a message thread on another device.
int com.hyphenate.EMMultiDeviceListener.THREAD_DESTROY = 41 |
The current user destroyed a message thread on another device.
int com.hyphenate.EMMultiDeviceListener.THREAD_JOIN = 42 |
The current user joined a message thread on another device.
int com.hyphenate.EMMultiDeviceListener.THREAD_KICK = 45 |
The current user kicked a member out of a message thread on another device.
int com.hyphenate.EMMultiDeviceListener.THREAD_LEAVE = 43 |
The current user left a message thread on another device.
int com.hyphenate.EMMultiDeviceListener.THREAD_UPDATE = 44 |
The current user updated message thread information on another device.