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
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.Function Definition
- Unity
- Unreal Engine
void Unbind(int channelId, string uid = "", string extraJson = "{}");
static void Unbind(
const int channelid,
const std::string &uid = GUA_DEFAULT_EMPTY_STRING,
const std::string &extra_json = GUA_DEFAULT_JSON_STRING);
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
channelId | int | Channel ID of the channel to unlink |
uid | string | [Optional] Account ID of the channel to unlink |
extraJson | string | [Optional] Extended field |
Parameter | Type | Description |
---|---|---|
channelid | int | Channel ID of the channel to unlink |
uid | std::string | [Optional] Account ID of the channel to unlink |
extraJson | std::string | [Optional] Extended field |
Callback Processing
The callback processing API is GUABaseResultObservers. The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is LoginBaseResultEvents
.
The callback methodID is GUA_ACCOUNT_UNBIND
.
The callback event is OnBaseResultNotify
.
The callback methodID is kMethodIDAccountUnbind
.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().Unbind(1);
GUA_NAMESPACE::GUAAccountService::Unbind(1);