Skip to main content
Version: 5.9.6

BlockUser

delegate void BlockCallback(bool IsSuccess);
public void BlockUser(string NickName);

Parameter

ValueTypeDescription
NickNamestringNickname 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
trueWhen successfully added to the block list
falseWhen the corresponding nickname does not exist