Chat SDK for Android v1.4.0
agora java chat SDK
 
Loading...
Searching...
No Matches
io.agora.MultiDeviceListener Interface Reference

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
 
int CONVERSATION_MARK_UPDATE = 63
 
int CONVERSATION_MUTE_INFO_CHANGED = 64
 

Detailed Description

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:
ChatClient.getInstance().addMultiDeviceListener(mMultiDeviceListener);
Removes a multi-device event listener:
ChatClient.getInstance().removeMultiDeviceListener(mMultiDeviceListener);

Member Function Documentation

◆ onChatThreadEvent()

default void io.agora.MultiDeviceListener.onChatThreadEvent ( int event,
String target,
List< String > usernames )

The multi-device message thread event.

Parameters
eventThe message thread event. See MultiDeviceListener.
targetThe message thread ID.
usernamesThe operation target ID(s).

◆ onContactEvent()

void io.agora.MultiDeviceListener.onContactEvent ( int event,
String target,
String ext )

The multi-device contact event.

Parameters
eventThe contact event. See MultiDeviceListener.
targetThe user ID of the contact.
extThe extension information.

◆ onConversationEvent()

default void io.agora.MultiDeviceListener.onConversationEvent ( int event,
String conversationId,
Conversation.ConversationType type )

The multi-device conversation event.

Parameters
eventThe conversation event. See CONVERSATION_PINNED, CONVERSATION_UNPINNED, CONVERSATION_MARK_UPDATE and CONVERSATION_DELETED.
conversationIdThe conversation ID.
typeThe conversation type. See Conversation.ConversationType.

◆ onGroupEvent()

void io.agora.MultiDeviceListener.onGroupEvent ( int event,
String target,
List< String > usernames )

The multi-device group event.

Parameters
eventThe group event. See MultiDeviceListener.
targetThe group ID.
usernamesThe operation target ID(s).

◆ onMessageRemoved()

default void io.agora.MultiDeviceListener.onMessageRemoved ( String conversationId,
String deviceId )

The multi-device event of historical message deletion from the server.

Parameters
conversationIdThe conversation ID.
deviceIdThe device ID.

Member Data Documentation

◆ CONTACT_ACCEPT

int io.agora.MultiDeviceListener.CONTACT_ACCEPT = 3

The current user accepted a friend request on another device.

◆ CONTACT_ALLOW

int io.agora.MultiDeviceListener.CONTACT_ALLOW = 6

The current user removed a contact from the block list on another device.

◆ CONTACT_BAN

int io.agora.MultiDeviceListener.CONTACT_BAN = 5

The current user added a contact to the block list on another device.

◆ CONTACT_DECLINE

int io.agora.MultiDeviceListener.CONTACT_DECLINE = 4

The current user declined a friend request on another device.

◆ CONTACT_REMOVE

int io.agora.MultiDeviceListener.CONTACT_REMOVE = 2

The current user initiated a friend request on another device.

The current user removed a contact on another device.

◆ CONVERSATION_DELETED

int io.agora.MultiDeviceListener.CONVERSATION_DELETED = 62

The current user removed a conversation from the server.

◆ CONVERSATION_MARK_UPDATE

int io.agora.MultiDeviceListener.CONVERSATION_MARK_UPDATE = 63

The conversation meter of the current user on another device is changed.

◆ CONVERSATION_MUTE_INFO_CHANGED

int io.agora.MultiDeviceListener.CONVERSATION_MUTE_INFO_CHANGED = 64

The current user set the conversation mute on another device. The user needs to call the ChatManager#getAllConversations() method to re-obtain the conversation list to refresh the UI.

◆ CONVERSATION_PINNED

int io.agora.MultiDeviceListener.CONVERSATION_PINNED = 60

The current user pinned a conversation on another device.

◆ CONVERSATION_UNPINNED

int io.agora.MultiDeviceListener.CONVERSATION_UNPINNED = 61

The current user unpinned a conversation on another device.

◆ GROUP_ADD_ADMIN

int io.agora.MultiDeviceListener.GROUP_ADD_ADMIN = 26

The current user added an admin on another device.

◆ GROUP_ADD_MUTE

int io.agora.MultiDeviceListener.GROUP_ADD_MUTE = 28

The current user muted a member on another device.

◆ GROUP_ADD_USER_WHITE_LIST

int io.agora.MultiDeviceListener.GROUP_ADD_USER_WHITE_LIST = 30

The current user adds other users to the group allow list on another device.

◆ GROUP_ALL_BAN

int io.agora.MultiDeviceListener.GROUP_ALL_BAN = 32

The current user muted all members of a group on another device.

◆ GROUP_ALLOW

int io.agora.MultiDeviceListener.GROUP_ALLOW = 22

The current user removed a member from a group block list on another device.

◆ GROUP_APPLY

int io.agora.MultiDeviceListener.GROUP_APPLY = 14

The current user requested to join a group on another device.

◆ GROUP_APPLY_ACCEPT

int io.agora.MultiDeviceListener.GROUP_APPLY_ACCEPT = 15

The current user accepted a group request on another device.

◆ GROUP_APPLY_DECLINE

int io.agora.MultiDeviceListener.GROUP_APPLY_DECLINE = 16

The current user declined a group request on another device.

◆ GROUP_ASSIGN_OWNER

int io.agora.MultiDeviceListener.GROUP_ASSIGN_OWNER = 25

The current user transferred the group ownership on another device.

◆ GROUP_BAN

int io.agora.MultiDeviceListener.GROUP_BAN = 21

The current user added a member to a group block list on another device.

◆ GROUP_BLOCK

int io.agora.MultiDeviceListener.GROUP_BLOCK = 23

The current user blocked a group on another device.

◆ GROUP_CREATE

int io.agora.MultiDeviceListener.GROUP_CREATE = 10

The current user created a group on another device.

◆ GROUP_DESTROY

int io.agora.MultiDeviceListener.GROUP_DESTROY = 11

The current user destroyed a group on another device.

◆ GROUP_INVITE

int io.agora.MultiDeviceListener.GROUP_INVITE = 17

The current user invited a user to join the group on another device.

◆ GROUP_INVITE_ACCEPT

int io.agora.MultiDeviceListener.GROUP_INVITE_ACCEPT = 18

The current user accepted a group invitation on another device.

◆ GROUP_INVITE_DECLINE

int io.agora.MultiDeviceListener.GROUP_INVITE_DECLINE = 19

The current user declined a group invitation on another device.

◆ GROUP_JOIN

int io.agora.MultiDeviceListener.GROUP_JOIN = 12

The current user joined a group on another device.

◆ GROUP_KICK

int io.agora.MultiDeviceListener.GROUP_KICK = 20

The current user kicked a member out of a group on another device.

◆ GROUP_LEAVE

int io.agora.MultiDeviceListener.GROUP_LEAVE = 13

The current user left a group on another device.

◆ GROUP_METADATA_CHANGED

int io.agora.MultiDeviceListener.GROUP_METADATA_CHANGED = 52

The current user modified custom attributes of a group member on another device.

◆ GROUP_REMOVE_ADMIN

int io.agora.MultiDeviceListener.GROUP_REMOVE_ADMIN = 27

The current user removed an admin on another device.

◆ GROUP_REMOVE_ALL_BAN

int io.agora.MultiDeviceListener.GROUP_REMOVE_ALL_BAN = 33

The current user unmuted all members of a group on another device.

◆ GROUP_REMOVE_MUTE

int io.agora.MultiDeviceListener.GROUP_REMOVE_MUTE = 29

The current user unmuted a member on another device.

◆ GROUP_REMOVE_USER_WHITE_LIST

int io.agora.MultiDeviceListener.GROUP_REMOVE_USER_WHITE_LIST = 31

The current user removes other users from the group allow list on another device.

◆ GROUP_UNBLOCK

int io.agora.MultiDeviceListener.GROUP_UNBLOCK = 24

The current user unblocked a group on another device.

◆ THREAD_CREATE

int io.agora.MultiDeviceListener.THREAD_CREATE = 40

The current user created a message thread on another device.

◆ THREAD_DESTROY

int io.agora.MultiDeviceListener.THREAD_DESTROY = 41

The current user destroyed a message thread on another device.

◆ THREAD_JOIN

int io.agora.MultiDeviceListener.THREAD_JOIN = 42

The current user joined a message thread on another device.

◆ THREAD_KICK

int io.agora.MultiDeviceListener.THREAD_KICK = 45

The current user kicked a member out of a message thread on another device.

◆ THREAD_LEAVE

int io.agora.MultiDeviceListener.THREAD_LEAVE = 43

The current user left a message thread on another device.

◆ THREAD_UPDATE

int io.agora.MultiDeviceListener.THREAD_UPDATE = 44

The current user updated message thread information on another device.


The documentation for this interface was generated from the following file: