|
class | EMAContactListenerImpl |
|
EMContactManager is used to manage eaemob friends. if your app has your own friends management, you don't need to use hyphenate contact manager.
- See also
- EMContact
void com.hyphenate.chat.EMContactManager.acceptInvitation |
( |
String |
username | ) |
throws HyphenateException |
accept the invitation
- Parameters
-
void com.hyphenate.chat.EMContactManager.addContact |
( |
String |
username, |
|
|
String |
reason |
|
) |
| throws HyphenateException |
add a new hyphenate user
- Parameters
-
username | |
reason | message for adding contact |
- Exceptions
-
void com.hyphenate.chat.EMContactManager.addUserToBlackList |
( |
String |
username, |
|
|
boolean |
both |
|
) |
| throws HyphenateException |
add the user to blacklist, who will not
- Parameters
-
username | |
both | true–ban the message sending from both side. false–block receiving message |
- Exceptions
-
void com.hyphenate.chat.EMContactManager.declineInvitation |
( |
String |
username | ) |
throws HyphenateException |
decline the invitation
- Parameters
-
void com.hyphenate.chat.EMContactManager.deleteContact |
( |
String |
username | ) |
throws HyphenateException |
delete a hyphenate user contact
- Parameters
-
- Exceptions
-
List<String> com.hyphenate.chat.EMContactManager.getAllContactsFromServer |
( |
| ) |
throws HyphenateException |
get all contacts
- Returns
- list of contact
- Exceptions
-
List<String> com.hyphenate.chat.EMContactManager.getBlackListFromServer |
( |
| ) |
throws HyphenateException |
get local black list
- Returns
- Exceptions
-
List<String> com.hyphenate.chat.EMContactManager.getBlackListUsernames |
( |
| ) |
|
get local black list
- Returns
- Exceptions
-
void com.hyphenate.chat.EMContactManager.removeContactListener |
( |
EMContactListener |
contactListener | ) |
|
void com.hyphenate.chat.EMContactManager.removeUserFromBlackList |
( |
String |
username | ) |
throws HyphenateException |
remove the contact from black list
- Parameters
-
- Exceptions
-
void com.hyphenate.chat.EMContactManager.saveBlackList |
( |
List< String > |
blackList | ) |
throws HyphenateException |
save black list to local db
- Parameters
-
void com.hyphenate.chat.EMContactManager.setContactListener |
( |
EMContactListener |
contactListener | ) |
|
register new contact listener
- Parameters
-
The documentation for this class was generated from the following file:
- hyphenatechatsdk/src/com/hyphenate/chat/EMContactManager.java