Skip to main content

Login

[Shared by Player Network SDK and MSDK] Login to the specified channel.

Supported platforms

Supports Android, iOS, Windows platform.

Function Definition

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

Input Parameters

ParametersTypeDescription
channelstringName of the channel to log in to
permissionsstringList of authorized permissions, separated by commas
For example: user_info,inapp_friends
See the corresponding channel documentation for specific meanings
subChannelstringSubchannel name
For example: Facebook, Twitter, etc.
extraJsonstringExtended Fields
For more information, refer to the corresponding channel documentation.

Callback Handling

The callback handling interface is GUALoginResultObservers.The callback data structure is GUALoginResult.

Callback event is LoginResultEvents. Callback ID is GUA_ACCOUNT_LOGIN.

Code Example

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