agora_chat_SDK 1.0.6
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) |
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 |
Created by linan on 17/4/17.
The multi-device event listener. Listens for callback for the current user's actions on other devices, including contact changes and group changes.
Registers 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 thread event.
event | The thread event. See MultiDeviceListener. |
target | The 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 contact ID. |
ext | The extension information. |
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). |
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 blocklist on another device.
int io.agora.MultiDeviceListener.CONTACT_BAN = 5 |
The current user added a contact to the blocklist 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.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 whitelist on another device.
int io.agora.MultiDeviceListener.GROUP_ALL_BAN = 32 |
The current user has set the group to mute on another device.
int io.agora.MultiDeviceListener.GROUP_ALLOW = 22 |
The current user removed a member from a group blocklist 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 blocklist 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_REMOVE_ADMIN = 27 |
The current user removed an admin on another device.
int io.agora.MultiDeviceListener.GROUP_REMOVE_ALL_BAN = 33 |
The current user unblocks the 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 whitelist 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 Thread on another device.
int io.agora.MultiDeviceListener.THREAD_DESTROY = 41 |
The current user destroyed a Thread on another device.
int io.agora.MultiDeviceListener.THREAD_JOIN = 42 |
The current user joined a Thread on another device.
int io.agora.MultiDeviceListener.THREAD_KICK = 45 |
The current user kicked a member out of a Thread on another device.
int io.agora.MultiDeviceListener.THREAD_LEAVE = 43 |
The current user left a Thread on another device.
int io.agora.MultiDeviceListener.THREAD_UPDATE = 44 |
The current user updated Thread info on another device.