Unbind
AndroidiOSWindows
If you were looking for the method for use with Unreal Engine, see Unbind for Unreal Engine SDK.
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
Name | Type | Description |
---|---|---|
channel | string | Channel to be unlinked. For more information, see INTLChannel. |
uid | string | Account ID of the unlinked channel (optional) |
extraJson | string | Extended 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