deleteFromBlackList
Introduction
Remove users from the blacklist.
Parameter details
Parameter name |
Parameter type |
Required |
Platform |
Description |
userIDList |
List< String > |
yes |
All |
The list of user IDs to remove from blacklist. |
Returned template
V2TimValueCallback<List<V2TimFriendOperationResult>>
{
code : int
desc : String
data : List<V2TimFriendOperationResult>
}
Return value details
name |
type |
description |
code |
int |
Request result: Error codes. 0 means success. |
desc |
String |
The description of the error. It will be empty if success. |
data |
List< V2TimFriendOperationResult > |
The list of operation result. |
Code example
V2TimValueCallback<List<V2TimFriendOperationResult>>
deleteFromBlackListRes = await TencentImSDKPlugin.v2TIMManager
.getFriendshipManager()
.deleteFromBlackList(
userIDList: []
);
if (deleteFromBlackListRes.code == 0) {
deleteFromBlackListRes.data?.forEach((element) {
element.resultCode;
element.resultInfo;
element.userID;
});
}