Skip to main content

Login (Login)

AndroidiOSWindows
If you're using Unreal Engine, see the Login for Unreal Engine SDK.

Log in to the game through the specified channel.This function returns authentication status and Player Network account information.

Function Definition

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

Input Parameters

ParametersTypeExplanation
channelStringSpecify the login channel.
For more information, see INTLChannel.
permissionsstringLogin authorization permission list, multiple permissions are separated by commas.
For example user_info,inapp_friends
See the explanation of each channel for specific meanings.
extraJsonstringExtended fields
For more information, seethe relative channel descriptions.

Callback processing

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

The callback ID is INTL_AUTH_LOGIN.

Code example

INTLAPI.Login(INTLChannel.Facebook);