|
Unity and Windows API reference
|
Public 成员函数 | |
| abstract void | AddContact (string username, string reason=null, CallBack handle=null) |
| abstract void | DeleteContact (string username, bool keepConversation=false, CallBack handle=null) |
| abstract void | GetAllContactsFromServer (ValueCallBack< List< string > > handle=null) |
| abstract List< string > | GetAllContactsFromDB () |
| abstract void | AddUserToBlockList (string username, CallBack handle=null) |
| abstract void | RemoveUserFromBlockList (string username, CallBack handle=null) |
| abstract void | GetBlockListFromServer (ValueCallBack< List< string > > handle=null) |
| abstract void | AcceptInvitation (string username, CallBack handle=null) |
| abstract void | DeclineInvitation (string username, CallBack handle=null) |
| abstract void | GetSelfIdsOnOtherPlatform (ValueCallBack< List< string > > handle=null) |
| void | AddContactManagerDelegate (IContactManagerDelegate contactManagerDelegate) |
| void | RemoveContactManagerDelegate (IContactManagerDelegate contactManagerDelegate) |
联系人管理类,用于添加、查询和删除联系人。
|
pure virtual |
添加好友。
异步方法。
| username | 要添加为好友的用户 ID。 |
| reason | 添加好友的原因,即邀请消息。该参数可选,可设置为 null 或 ""。 |
| handle | 结果回调,详见 CallBack。 |
|
pure virtual |
删除联系人及其相关的会话。
异步方法。
| username | 要删除的联系人的用户 ID。 |
| keepConversation | 是否保留要删除的联系人的会话。
|
| handle | 结果回调,详见 CallBack。 |
|
pure virtual |
|
pure virtual |
从本地数据库获取联系人列表。
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
|
pure virtual |
获取登录用户在其他登录设备上唯一 ID。
该 ID 由 user ID + "/" + resource 组成。
异步方法。
| handle | 该方法完成的回调。调用成功会返回用户在其他登录设备上的 ID;失败则返回错误信息。详见 ValueCallBack |
| void ChatSDK.IContactManager.AddContactManagerDelegate | ( | IContactManagerDelegate | contactManagerDelegate | ) |
注册联系人监听器。
| contactManagerDelegate | 要注册的联系人监听器,继承自 IContactManagerDelegate。 |
| void ChatSDK.IContactManager.RemoveContactManagerDelegate | ( | IContactManagerDelegate | contactManagerDelegate | ) |
移除联系人监听器。
| contactManagerDelegate | 要移除的联系人监听器,继承自 IContactManagerDelegate。 |