hyphenate_SDK3.0  3.0.1
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 onContactAgreed (String username)
 
void onContactRefused (String username)
 

Detailed Description

Contact change listener. if your app will use hyphenate contact management, you have to use this listener by implementing it to receive any change of contact

Member Function Documentation

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

this api will be called when there is any contact added

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

this api will be called when your application is accepted

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

this api will be called when some contacts of yours are deleted

Parameters
username删除的联系人
void com.hyphenate.EMContactListener.onContactInvited ( String  username,
String  reason 
)

this api will be called when you receive a friend application

Parameters
usernameUser who asked to be friend of current user.
reasonUser's invite literal message.
void com.hyphenate.EMContactListener.onContactRefused ( String  username)

this api will be called when your application is refused

Parameters
username

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