Skip to main content

Bind

[Player Network SDK and MSDK] Links the third-party channel to the guest account. It ensures various third-party channels share a single Player Network SDK OpenID.
It is generally used to link Facebook or Google accounts to existing guest accounts in a game.

For more information, see MSDK link workflow.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

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

Input Parameters

ParameterTypeDescription
channelstringThe specified channel to link.
permissionsstringThe list of authorized permissions.
Separate the permissions by commas.For example, "user_info,inapp_friends".
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_BIND.

Code Sample

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