|
hyphenate_SDK3.0
3.8.1
hyphenatejavaIMSDK
|
Public 成员函数 | |
| void | onContactAdded (String username) |
| void | onContactDeleted (String username) |
| void | onContactInvited (String username, String reason) |
| void | onFriendRequestAccepted (String username) |
| void | onFriendRequestDeclined (String username) |
联系人监听器,监听联系变化,包括添加好友的申请,对方删除好友的通知, 对方同意好友请求,对方拒绝好友请求。 注册联系人监听,请执行EMClient.getInstance().contactManager().setContactListener(EMContactListener listener);
| void com.hyphenate.EMContactListener.onContactAdded | ( | String | username | ) |
增加联系人时回调此方法
| username | 增加的联系人 |
| void com.hyphenate.EMContactListener.onContactDeleted | ( | String | username | ) |
被删除时回调此方法
| username | 删除的联系人 |
| void com.hyphenate.EMContactListener.onContactInvited | ( | String | username, |
| String | reason | ||
| ) |
收到好友邀请
| username | 发起加为好友用户的名称 |
| reason | 对方发起好友邀请时发出的文字性描述 |
| void com.hyphenate.EMContactListener.onFriendRequestAccepted | ( | String | username | ) |
好友请求被同意
| username |
| void com.hyphenate.EMContactListener.onFriendRequestDeclined | ( | String | username | ) |
好友请求被拒绝
| username |
1.8.10