Skip to main content

Login

[Player Network SDK and MSDK] Log in to the specified channel.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

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

Input Parameters

ParameterTypeDescription
channelstringThe specified channel to login
permissionsstringThe list of permissions authorized to the login channel.
Separate the permissions by commas. For example, "user_info,inapp_friends".
For more information, see relative channel descriptions.
subChannelstringSub-channel name
For example, Facebook or Twitter.
extraJsonstringThe extended field.
For more information, see relative channel descriptions.

Callback Processing

The callback processing API is GUALoginResultObservers. The callback data structure is GUALoginResult.

The callback event is LoginResultEvents. The callback methodID is GUA_ACCOUNT_LOGIN.

Code Sample

UnionAdapterAPI.GetAccountService().Login("WeChat");