Skip to main content

Unbind

AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see Unbind for Unreal Engine SDK.
caution

It is not recommended to directly unlink login channels on the game client. To prevent players from transferring accounts by unlinking or relinking, it is recommended to relink accounts through customer service.

Unlink a login channel from a Player Network account. After successful unlinking, users will no longer be able to log in to the Player Network account via the unlinked channel. The next time users log in using the unlinked channel, a new Player Network SDK OpenID will be generated. Unlinking is restricted on LI PASS.

note

The current login channel cannot be unlinked.

Function definition

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

Input parameters

NameTypeDescription
channelstringChannel to be unlinked. For more information, see INTLChannel.
uidstringAccount ID of the unlinked channel (optional)
extraJsonstringExtended field (optional)

Observers

The callback processing API is AuthBaseResultObserver.
The callback data structure is BaseResult.

The callback methodID is INTL_AUTH_UNBIND.

Code sample

INTLAPI.Unbind(4); //Unlink the Facebook channel