Logout
[Player Network SDK and MSDK] Log out from the current channel.
Supported Platform
- Unity
- Unreal Engine
Supports
Android, iOS, Windows
platform.Supports
Android, iOS, Windows
platform.Function Definition
- Unity
- Unreal Engine
void Logout(string channel = "", string subChannel = "", bool channelOnly = false);
static void Logout(const std::string &channel = "", const std::string &sub_channel = "", bool channel_only = false);
Input Parameters
- Unity
- Unreal Engine
Parameter | Type | Description |
---|---|---|
channel | string | The specified channel to log out. |
subChannel | string | Sub-channel name For example, Facebook or Twitter. |
channelOnly | bool | Only logs out from the channel. |
Parameter | Type | Description |
---|---|---|
channel | std::string | The specified channel to log out. |
sub_channel | std::string | Sub-channel name For example, Facebook or Twitter. |
channel_only | bool | Only logs out from the channel. |
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_LOGOUT
.
The callback event is OnBaseResultNotify
.
The callback methodID is kMethodIDAccountLogout
.
Code Sample
- Unity
- Unreal Engine
UnionAdapterAPI.GetAccountService().Logout("WeChat");
GUA_NAMESPACE::GUAAccountService::Logout("WeChat");