Skip to main content

Check Whether Binding Is Allowed [MSDK Only]

[MSD Only] Check whether the account can be bound. If binding is allowed, a ConfirmCode will be returned. After the game retrieves the user information, the BindWithConfirmCode operation can be performed.

Supported platforms

Supports Android, iOS platform.

Function Definition

void Check(string channel,  string permissions = "",  string subChannel = "",  string extraJson = "");

Input Parameters

ParametersTypeDescription
channelstringChannel name
For example "Facebook", "Twitter"
permissionsstringList of authorized permissions, separated by commas
For example: user_info,inapp_friends
See the corresponding channel documentation for specific meanings
subChannelstringSub-channel name
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.

The callback event is LoginResultEvents. The callback ID is GUA_ACCOUNT_BIND.

Code Example

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