Skip to main content

Check if the username is registered (QueryUserNameStatus)

AndroidiOSWindows
If you're using the Unity engine, see the QueryUserNameStatus for 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

ParametersTypeExplanation
userNameFStringusername

Callback processing

The callback processing interface is AuthAccountResultObserver.The callback data structure is AccountResult.

The callback ID is kMethodIDAuthQueryUsernameStatus.

Code example

UINTLSDKAPI::QueryUserNameStatus("username");