Skip to main content

Unbind [Player Network SDK Only]

[Player Network SDK Only] Unlinks the login channel linked to the Player Network account. After successfully unlinking the channel, the user can no longer login to the same Player Network account through the unlinked channel. The next time the user logs in using the unlinked channel, a new OpenID is generated. Please note that it is not possible to unlink the currently logged in channel.

Supported Platform

Supports Android, iOS, Windows platform.

Function Definition

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

Input Parameters

ParameterTypeDescription
channelIdintChannel ID of the channel to unlink
uidstring[Optional] Account ID of the channel to unlink
extraJsonstring[Optional] Extended field

Callback Processing

The callback processing API is GUABaseResultObservers. The callback data structure is GUABaseResult.

The callback event is LoginBaseResultEvents. The callback methodID is GUA_ACCOUNT_UNBIND.

Code Sample

UnionAdapterAPI.GetAccountService().Unbind(1);