Login (Login)
AndroidiOSPC
If you are using Unreal Engine, please refer to 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
| Parameters | Type | Explanation |
|---|---|---|
| channel | string | Specify the login channel. For more information, see INTLChannel. |
| permissions | string | Login authorization permission list, multiple permissions are separated by commas. For example user_info,inapp_friends See the explanation of each channel for specific meanings. |
| extraJson | string | Extended 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);