agora_chat_SDK
3.8.2
agorajavachatSDK
|
Public Member Functions | |
void | onContactEvent (int event, String target, String ext) |
void | onGroupEvent (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 |
Created by linan on 17/4/17.
Multi-device listener Listen current user action callback on other devices, including contact changes and group changes
Register listener: ChatClient.getInstance().addMultiDeviceListener(mMultiDeviceListener);
Unregister listener: ChatClient.getInstance().removeMultiDeviceListener(mMultiDeviceListener);
void io.agora.MultiDeviceListener.onContactEvent | ( | int | event, |
String | target, | ||
String | ext | ||
) |
Multi device onContact event
event | Event, see the constants above |
target | Contact id |
ext | Extended information |
void io.agora.MultiDeviceListener.onGroupEvent | ( | int | event, |
String | target, | ||
List< String > | usernames | ||
) |
Multi device onGroup event
event | Event, see the constants above |
target | Group id |
usernames | Operation target ids list |
int io.agora.MultiDeviceListener.CONTACT_ACCEPT = 3 |
Current user accepted contact invitation on other device
int io.agora.MultiDeviceListener.CONTACT_ALLOW = 6 |
Current user removed someone from blacklist on other device
int io.agora.MultiDeviceListener.CONTACT_BAN = 5 |
Current user added someone to blacklist on other device
int io.agora.MultiDeviceListener.CONTACT_DECLINE = 4 |
Current user refused contact invitation on other device
int io.agora.MultiDeviceListener.CONTACT_REMOVE = 2 |
Current user removed contact on other device
int io.agora.MultiDeviceListener.GROUP_ADD_ADMIN = 26 |
Current user added administrator on other device
int io.agora.MultiDeviceListener.GROUP_ADD_MUTE = 28 |
Current user added someone into mute list on other device
int io.agora.MultiDeviceListener.GROUP_ALLOW = 22 |
Current user removed someone from blacklist on other device
int io.agora.MultiDeviceListener.GROUP_APPLY = 14 |
Current user applied to join the group on other device
int io.agora.MultiDeviceListener.GROUP_APPLY_ACCEPT = 15 |
Current user accepted group application on other device
int io.agora.MultiDeviceListener.GROUP_APPLY_DECLINE = 16 |
Current user refused group application on other device
int io.agora.MultiDeviceListener.GROUP_ASSIGN_OWNER = 25 |
Current user assigned group owner to someone on other device
int io.agora.MultiDeviceListener.GROUP_BAN = 21 |
Current user added someone into group blacklist on other device
int io.agora.MultiDeviceListener.GROUP_BLOCK = 23 |
Current user blocked the group message on other device
int io.agora.MultiDeviceListener.GROUP_CREATE = 10 |
Current user created group on other device
int io.agora.MultiDeviceListener.GROUP_DESTROY = 11 |
Current user destroyed group on other device
int io.agora.MultiDeviceListener.GROUP_INVITE = 17 |
Current user invited some one to join the group on other device
int io.agora.MultiDeviceListener.GROUP_INVITE_ACCEPT = 18 |
Current user accepted the group invitation on other device
int io.agora.MultiDeviceListener.GROUP_INVITE_DECLINE = 19 |
Current user declined the group invitation on other device
int io.agora.MultiDeviceListener.GROUP_JOIN = 12 |
Current user joined group on other device
int io.agora.MultiDeviceListener.GROUP_KICK = 20 |
Current user kicked someone from group on other device
int io.agora.MultiDeviceListener.GROUP_LEAVE = 13 |
Current user left the group on other device
int io.agora.MultiDeviceListener.GROUP_REMOVE_ADMIN = 27 |
Current user removed administrator on other device
int io.agora.MultiDeviceListener.GROUP_REMOVE_MUTE = 29 |
Current user removed someone from mute list
int io.agora.MultiDeviceListener.GROUP_UNBLOCK = 24 |
Current user unblock the group message on other device