hyphenate_SDK3.0
3.8.6.1
hyphenate java IM SDK
|
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: EMClient.getInstance().contactManager().setContactListener(mContactListener); Unregister listener: EMClient.getInstance().contactManager().removeContactListener(mContactListener);
void com.hyphenate.EMContactListener.onContactAdded | ( | String | username | ) |
Call back when user is added as a contact by another user
username | New contact added |
void com.hyphenate.EMContactListener.onContactDeleted | ( | String | username | ) |
Call back when user is removed as a contact by another user
username | Contact removed |
void com.hyphenate.EMContactListener.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 com.hyphenate.EMContactListener.onFriendRequestAccepted | ( | String | username | ) |
Call back when a friend request is approved
username |
void com.hyphenate.EMContactListener.onFriendRequestDeclined | ( | String | username | ) |
Call back when a friend request is declined
username |