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
- 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
| Parameters | Type | Description |
|---|---|---|
| channelId | int | Channel to be unbound |
| uid | string | [Optional] Account ID of the channel to be unbound |
| extraJson | string | [Optional] Extra field |
| Parameters | Type | Description |
|---|---|---|
| channelid | int | Channel to be unbound |
| uid | std::string | [Optional] Account ID of the channel to be unbound |
| extraJson | std::string | [Optional] Extra field |
Callback Handling
The callback handler interface is GUABaseResultObservers.The callback data structure is GUABaseResult.
- Unity
- Unreal Engine
The callback event is LoginBaseResultEvents.The callback ID is GUA_ACCOUNT_UNBIND.
The callback event is OnBaseResultNotify.The callback ID is kMethodIDAccountUnbind.
Code Example
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().Unbind(1);
GUA_NAMESPACE::GUAAccountService::Unbind(1);