Skip to main content

Bind

[Shared by Player Network SDK and MSDK] Bind a third-party channel to a guest account.It essentially means that multiple third-party accounts share a single Player Network SDK OpenID.
Typical use case: a player logs in as a guest and then binds a Facebook or Google account.

For more information, see MSDK Binding Flow.

Supported platforms

Supports Android, iOS, Windows platform.

Function Definition

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

Input Parameters

ParametersTypeDescription
channelstringChannel to bind
permissionsstringPermission list when binding, multiple permissions separated by commas
For example: user_info,inapp_friends
subChannelstringSub-channel name
For example "Facebook" or "Twitter".
extraJsonstringExtended fields
For more information, seethe relative channel descriptions.

Callback Handling

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

Callback event is LoginResultEvents. Callback ID is GUA_ACCOUNT_BIND.

Code Example

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