Skip to main content

Login

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see Login for Unreal Engine SDK.

Logs in to the game through a specified channel. The function returns authentication status and Player Network account information.

Function definition

public static void Login(string channel, string permissions = "", string extraJson = "{}");

Input parameters

ParameterTypeDescription
channelstringThe specified channel to login.
For more information, see INTLChannel.
permissionsstringThe authorized permissions list during login. Separate the permissions using commas.
Example: user_info,inapp_friends
For permission details, see relative channel descriptions.
extraJsonstringThe extended field.
For more information, see relative channel descriptions.

Observers

The callback processing interface is AuthResultObserver. The callback data structure is AuthResult.

The callback methodID is INTL_AUTH_LOGIN.

Code sample

INTLAPI.Login(INTLChannel.Facebook);