Skip to main content

QueryUserNameStatus [Player Network SDK Only]

[Player Network SDK Only] Checks whether the user name can be used to register an account. If the user name is available, the value of IsUserNameAvailable is 1. Otherwise, it is 0.

Supported Platform​

Supports Android, iOS, Windows platform.

Function Definition​

void QueryUserNameStatus(string userName);

Input Parameters​

ParameterTypeDescription
userNamestringusername

Callback Processing​

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

The callback event is AccountEvents. The callback methodID is GUA_ACCOUNT_QUERY_USER_NAME_STATUS.

Code Sample​

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