Skip to main content

Check Whether a Username Can Be Used to Register an Account (QueryUserNameStatus) [Player Network SDK Only]

[Player Network SDK only] Check if the username can be used to register an account.If the username is available, the returned value of IsUserNameAvailable is 1; otherwise, it is 0.

Supported Platforms

Supports Android, iOS, Windows platform.

Function Definition

void QueryUserNameStatus(string userName);

Input Parameters

ParametersTypeDescription
userNamestringusername

Callback Handling

The callback processing interface is GUAAccountResultObservers.The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback ID is GUA_ACCOUNT_QUERY_USER_NAME_STATUS.

Code Example

UnionAdapterAPI.GetAccountService().QueryUserNameStatus("username");