Skip to main content

CanBind [MSDK Only]

[MSDK Only] Queries if an account can be linked. Currently, only custom accounts are supported.

Supported Platform​

Supports Android, iOS, Windows platform.

Function Definition​

void CanBind(string channel,  string channelInfo,  string extraJson = "{}");

Input Parameters​

ParameterTypeDescription
channelstringCustom account channel ID
ACCOUNT_PLAT_TYPE assigned by Player Network Console
channelInfostringCorresponding channel information
extraJsonstringExtended Information

Callback Processing​

The callback processing API is GUAAccountResultObservers. The callback data structure is GUAAccountResult.

The callback event is AccountEvents. The callback methodID is GUA_ACCOUNT_CAN_BIND.

Code Sample​

UnionAdapterAPI.GetAccountService().CanBind("WeChat", "channelInfo");