Login
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see Login for Unreal Engine SDK.
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
Parameter | Type | Description |
---|---|---|
channel | string | The specified channel to login. For more information, see INTLChannel. |
permissions | string | The authorized permissions list during login. Separate the permissions using commas. Example: user_info,inapp_friends For permission details, see relative channel descriptions. |
extraJson | string | The 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);