Skip to main content

Check if the username is registered (QueryUserNameStatus)

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

public static void QueryUserNameStatus(string userName);                    

Input Parameters

ParametersTypeExplanation
userNameStringusername

Callback processing

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

The callback ID is INTL_AUTH_QUERY_USER_NAME_STATUS.

Code example

INTLAPI.QueryUserNameStatus("username");