Skip to main content

Unbind [Player Network SDK Only]

[Player Network SDK Only] Unbind the login channel from the Player Network account.After successfully unbinding the channel, the same Player Network account can no longer be logged in through the unbound channel.The next time this unbound channel is used to log in, a new OpenID will be generated.Please note that the current login channel cannot be unbound.

AndroidiOSWindows

Function Definition

void Unbind(int channelId,  string uid = "",  string extraJson = "{}");

Input Parameters

ParametersTypeDescription
channelIdintChannel to be unbound
uidstring[Optional] Account ID of the channel to be unbound
extraJsonstring[Optional] Extra field

Callback Handling

The callback handler interface is GUABaseResultObservers.The callback data structure is GUABaseResult.

The callback event is LoginBaseResultEvents.The callback ID is GUA_ACCOUNT_UNBIND.

Code Example

UnionAdapterAPI.GetAccountService().Unbind(1);