Check if the username is registered (QueryUserNameStatus)
AndroidiOSPC
If you are using the Unity engine, see QueryUserNameStatus in the Unity SDK.
Check if the username can be used to register an account.If the username is available, the value of IsUserNameAvailable in INTLAccountResult will be 1; otherwise, it will be 0.
Function definition
UFUNCTION(BlueprintCallable, Category = "INTLSDKAPI")
static void QueryUserNameStatus(const FString & userName);
Input Parameters
| Parameters | Type | Description |
|---|---|---|
| userName | FString | username |
Callback processing
The callback processing interface is AuthAccountResultObserver.The callback data structure is AccountResult.
The callback ID is kMethodIDAuthQueryUsernameStatus.
Code example
UINTLSDKAPI::QueryUserNameStatus("username");