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) |
The contact updates listener.
Listen for the contact changes, including requests to add friends, notifications to delete friends, requests to accept friends, and requests to reject friends.
Register listener:
Unregister listener:
| void io.agora.ContactListener.onContactAdded | ( | String | username | ) |
Occurs when user is added as a contact by another user.
| username | The new contact to be added. |
| void io.agora.ContactListener.onContactDeleted | ( | String | username | ) |
Occurs when a user is removed from the contact list by another user.
| username | The user who is removed from the contact list by another user. |
| void io.agora.ContactListener.onContactInvited | ( | String | username, |
| String | reason ) |
Occurs when a user receives a friend request.
| username | The user who initiated the friend request. |
| reason | The invitation message. |
| void io.agora.ContactListener.onFriendRequestAccepted | ( | String | username | ) |
Occurs when a friend request is approved.
| username | The user who initiated the friend request. |
| void io.agora.ContactListener.onFriendRequestDeclined | ( | String | username | ) |
Occurs when a friend request is declined.
| username | The user who initiated the friend request. |