Chat SDK for Android v1.2.0
agora java chat 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, Conversation.ConversationType type) |
Public Attributes | |
int | CONTACT_REMOVE = 2 |
int | CONTACT_ACCEPT = 3 |
int | CONTACT_DECLINE = 4 |
int | CONTACT_BAN = 5 |
int | CONTACT_ALLOW = 6 |
int | GROUP_CREATE = 10 |
int | GROUP_DESTROY = 11 |
int | GROUP_JOIN = 12 |
int | GROUP_LEAVE = 13 |
int | GROUP_APPLY = 14 |
int | GROUP_APPLY_ACCEPT = 15 |
int | GROUP_APPLY_DECLINE = 16 |
int | GROUP_INVITE = 17 |
int | GROUP_INVITE_ACCEPT = 18 |
int | GROUP_INVITE_DECLINE = 19 |
int | GROUP_KICK = 20 |
int | GROUP_BAN = 21 |
int | GROUP_ALLOW = 22 |
int | GROUP_BLOCK = 23 |
int | GROUP_UNBLOCK = 24 |
int | GROUP_ASSIGN_OWNER = 25 |
int | GROUP_ADD_ADMIN = 26 |
int | GROUP_REMOVE_ADMIN = 27 |
int | GROUP_ADD_MUTE = 28 |
int | GROUP_REMOVE_MUTE = 29 |
int | GROUP_ADD_USER_WHITE_LIST = 30 |
int | GROUP_REMOVE_USER_WHITE_LIST = 31 |
int | GROUP_ALL_BAN = 32 |
int | GROUP_REMOVE_ALL_BAN = 33 |
int | THREAD_CREATE = 40 |
int | THREAD_DESTROY = 41 |
int | THREAD_JOIN = 42 |
int | THREAD_LEAVE = 43 |
int | THREAD_UPDATE = 44 |
int | THREAD_KICK = 45 |
int | GROUP_METADATA_CHANGED = 52 |
int | CONVERSATION_PINNED = 60 |
int | CONVERSATION_UNPINNED = 61 |
int | CONVERSATION_DELETED = 62 |
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 io.agora.MultiDeviceListener.onChatThreadEvent | ( | int | event, |
String | target, | ||
List< String > | usernames | ||
) |
The multi-device message thread event.
event | The message thread event. See MultiDeviceListener. |
target | The message thread ID. |
usernames | The operation target ID(s). |
void io.agora.MultiDeviceListener.onContactEvent | ( | int | event, |
String | target, | ||
String | ext | ||
) |
The multi-device contact event.
event | The contact event. See MultiDeviceListener. |
target | The user ID of the contact. |
ext | The extension information. |
default void io.agora.MultiDeviceListener.onConversationEvent | ( | int | event, |
String | conversationId, | ||
Conversation.ConversationType | type | ||
) |
The multi-device conversation event.
event | The conversation event. See CONVERSATION_PINNED, CONVERSATION_UNPINNED, and CONVERSATION_DELETED. |
conversationId | The conversation ID. |
type | The conversation type. See Conversation.ConversationType. |
void io.agora.MultiDeviceListener.onGroupEvent | ( | int | event, |
String | target, | ||
List< String > | usernames | ||
) |
The multi-device group event.
event | The group event. See MultiDeviceListener. |
target | The group ID. |
usernames | The operation target ID(s). |
default void io.agora.MultiDeviceListener.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 io.agora.MultiDeviceListener.CONTACT_ACCEPT = 3 |
The current user accepted a friend request on another device.
int io.agora.MultiDeviceListener.CONTACT_ALLOW = 6 |
The current user removed a contact from the block list on another device.
int io.agora.MultiDeviceListener.CONTACT_BAN = 5 |
The current user added a contact to the block list on another device.
int io.agora.MultiDeviceListener.CONTACT_DECLINE = 4 |
The current user declined a friend request on another device.
int io.agora.MultiDeviceListener.CONTACT_REMOVE = 2 |
The current user removed a contact on another device.
int io.agora.MultiDeviceListener.CONVERSATION_DELETED = 62 |
The current user removed a conversation from the server.
int io.agora.MultiDeviceListener.CONVERSATION_PINNED = 60 |
The current user pinned a conversation on another device.
int io.agora.MultiDeviceListener.CONVERSATION_UNPINNED = 61 |
The current user unpinned a conversation on another device.
int io.agora.MultiDeviceListener.GROUP_ADD_ADMIN = 26 |
The current user added an admin on another device.
int io.agora.MultiDeviceListener.GROUP_ADD_MUTE = 28 |
The current user muted a member on another device.
int io.agora.MultiDeviceListener.GROUP_ADD_USER_WHITE_LIST = 30 |
The current user adds other users to the group allow list on another device.
int io.agora.MultiDeviceListener.GROUP_ALL_BAN = 32 |
The current user muted all members of a group on another device.
int io.agora.MultiDeviceListener.GROUP_ALLOW = 22 |
The current user removed a member from a group block list on another device.
int io.agora.MultiDeviceListener.GROUP_APPLY = 14 |
The current user requested to join a group on another device.
int io.agora.MultiDeviceListener.GROUP_APPLY_ACCEPT = 15 |
The current user accepted a group request on another device.
int io.agora.MultiDeviceListener.GROUP_APPLY_DECLINE = 16 |
The current user declined a group request on another device.
int io.agora.MultiDeviceListener.GROUP_ASSIGN_OWNER = 25 |
The current user transferred the group ownership on another device.
int io.agora.MultiDeviceListener.GROUP_BAN = 21 |
The current user added a member to a group block list on another device.
int io.agora.MultiDeviceListener.GROUP_BLOCK = 23 |
The current user blocked a group on another device.
int io.agora.MultiDeviceListener.GROUP_CREATE = 10 |
The current user created a group on another device.
int io.agora.MultiDeviceListener.GROUP_DESTROY = 11 |
The current user destroyed a group on another device.
int io.agora.MultiDeviceListener.GROUP_INVITE = 17 |
The current user invited a user to join the group on another device.
int io.agora.MultiDeviceListener.GROUP_INVITE_ACCEPT = 18 |
The current user accepted a group invitation on another device.
int io.agora.MultiDeviceListener.GROUP_INVITE_DECLINE = 19 |
The current user declined a group invitation on another device.
int io.agora.MultiDeviceListener.GROUP_JOIN = 12 |
The current user joined a group on another device.
int io.agora.MultiDeviceListener.GROUP_KICK = 20 |
The current user kicked a member out of a group on another device.
int io.agora.MultiDeviceListener.GROUP_LEAVE = 13 |
The current user left a group on another device.
int io.agora.MultiDeviceListener.GROUP_METADATA_CHANGED = 52 |
The current user modified custom attributes of a group member on another device.
int io.agora.MultiDeviceListener.GROUP_REMOVE_ADMIN = 27 |
The current user removed an admin on another device.
int io.agora.MultiDeviceListener.GROUP_REMOVE_ALL_BAN = 33 |
The current user unmuted all members of a group on another device.
int io.agora.MultiDeviceListener.GROUP_REMOVE_MUTE = 29 |
The current user unmuted a member on another device.
int io.agora.MultiDeviceListener.GROUP_REMOVE_USER_WHITE_LIST = 31 |
The current user removes other users from the group allow list on another device.
int io.agora.MultiDeviceListener.GROUP_UNBLOCK = 24 |
The current user unblocked a group on another device.
int io.agora.MultiDeviceListener.THREAD_CREATE = 40 |
The current user created a message thread on another device.
int io.agora.MultiDeviceListener.THREAD_DESTROY = 41 |
The current user destroyed a message thread on another device.
int io.agora.MultiDeviceListener.THREAD_JOIN = 42 |
The current user joined a message thread on another device.
int io.agora.MultiDeviceListener.THREAD_KICK = 45 |
The current user kicked a member out of a message thread on another device.
int io.agora.MultiDeviceListener.THREAD_LEAVE = 43 |
The current user left a message thread on another device.
int io.agora.MultiDeviceListener.THREAD_UPDATE = 44 |
The current user updated message thread information on another device.