hyphenate_SDK3.0  3.6.2
hyphenatejavaIMSDK
Public Member Functions | List of all members
com.hyphenate.EMContactListener Interface Reference

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)
 

Detailed Description

Contact updates listener. If your app is using Hyphenate's contact management, then you will need to use the following listeners for updates

Member Function Documentation

void com.hyphenate.EMContactListener.onContactAdded ( String  username)

callback the user is added as a contact by another user

Parameters
usernamenew contact added
void com.hyphenate.EMContactListener.onContactDeleted ( String  username)

callback when user is removed as a contact by another user

Parameters
usernamecontact removed
void com.hyphenate.EMContactListener.onContactInvited ( String  username,
String  reason 
)

callback when user receives a friend request

Parameters
usernameUser who initiated the friend request
reasonUser's friend request message.
void com.hyphenate.EMContactListener.onFriendRequestAccepted ( String  username)

callback when a friend request is approved

Parameters
username
void com.hyphenate.EMContactListener.onFriendRequestDeclined ( String  username)

callback when a friend request is declined

Parameters
username

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