BlockUser
delegate void BlockCallback(bool IsSuccess);
public void BlockUser(string NickName);
Parameter
Value | Type | Description |
---|---|---|
NickName | string | Nickname of the user to be blocked |
Description
To prevent harassment or spamming, the user with the corresponding nickname is blocked.
The blocked user list is stored locally using the BACKND file system function.
This method is provided only in an asynchronous form.
Example
Backend.Chat.BlockUser("Nickname", blockCallback =>
{
// Success
if(blockCallback)
{
}
// Failure
else
{
}
});
Return casess
IsSuccess(blockCallback) | Description |
---|---|
true | When successfully added to the block list |
false | When the corresponding nickname does not exist |