IsUserBlocked
public void IsUserBlocked(string NickName);
Parameter
| Value | Type | Description |
|---|---|---|
| NickName | string | Nickname of the user to be looked up |
Description
You can look up whether the user with the corresponding nickname exists in the block list.
This method is provided only in a synchronous form.
Example
string isUnblock = Backend.Chat.IsUserBlocked("Nickname");
if(isUnblock)
Debug.Log("The user is blocked.");
else
Debug.Log("The user does not exist in the block list.");
Return casess
| returnValue(bool) | Description |
|---|---|
| true | When the user is in the block list |
| false | When the user is not in the block list |