Skip to main content

Check [MSDK Only]

[MSDK Only] Checks whether the account can be used to link third-party channels. If it can be used to link other channels, a confirmation code is returned for games to call BindWithConfirmCode after verifying user information.

Supported Platform​

Supports Android, iOS platform.

Function Definition​

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

Input Parameters​

ParameterTypeDescription
channelstringChannel name
Such as "Facebook" or "Twitter".
permissionsstringThe list of authorized permissions
Separate the permissions by commas. For example, "user_info,inapp_friends". The extended field.
For more information, see relative channel descriptions.
subChannelstringSub-channel name
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_CHECK.

Code Sample​

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