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
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
void QueryUserNameStatus(string userName);
static void QueryUserNameStatus(const std::string &user_name);
Input Parameters
- Unity
- Unreal Engine
| Parameter | Type | Description |
|---|---|---|
| userName | string | username |
| Parameter | Type | Description |
|---|---|---|
| user_name | std::string | username |
Callback Processing
The callback processing API is GUAAccountResultObservers. The callback data structure is GUAAccountResult.
- Unity
- Unreal Engine
The callback event is AccountEvents.
The callback methodID is GUA_ACCOUNT_QUERY_USER_NAME_STATUS.
The callback event is OnAccountResultNotify.
The callback methodID is kMethodIDAccountQueryUserNameStatus.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().QueryUserNameStatus("username");
GUA_NAMESPACE::GUAAccountService::QueryUserNameStatus("username");