agora_chat_SDK
3.8.2
agorajavachatSDK
|
Public Member Functions | |
void | onContactAdded (String username) |
void | onContactDeleted (String username) |
void | onContactInvited (String username, String reason) |
void | onFriendRequestAccepted (String username) |
void | onFriendRequestDeclined (String username) |
Contact updates listener Listen for contact changes, including requests to add friends, notifications to delete friends, requests to accept friends, and requests to reject friends
Register listener: ChatClient.getInstance().contactManager().setContactListener(mContactListener);
Unregister listener: ChatClient.getInstance().contactManager().removeContactListener(mContactListener);
void io.agora.ContactListener.onContactAdded | ( | String | username | ) |
Call back when user is added as a contact by another user
username | New contact added |
void io.agora.ContactListener.onContactDeleted | ( | String | username | ) |
Call back when user is removed as a contact by another user
username | Contact removed |
void io.agora.ContactListener.onContactInvited | ( | String | username, |
String | reason | ||
) |
Call back when user receives a friend request
username | User who initiated the friend request |
reason | User's friend request message |
void io.agora.ContactListener.onFriendRequestAccepted | ( | String | username | ) |
Call back when a friend request is approved
username |
void io.agora.ContactListener.onFriendRequestDeclined | ( | String | username | ) |
Call back when a friend request is declined
username |