Skip to main content

Logout

[Shared by Player Network SDK & MSDK] Log out of the current channel.

Supported platforms

Supports Android, iOS, Windows platform.

Function Definition

void Logout(string channel = "", string subChannel = "", bool channelOnly = false);

Input Parameters

ParametersTypeDescription
channelstringName of the channel to log out
subChannelstringSub-channel name
For example, Facebook, Twitter, etc.
channelOnlyboolOnly log out from the specified channel

Callback Handling

The callback handler interface is GUABaseResultObservers.The callback data structure is GUABaseResult.

The callback event is LoginBaseResultEvents. The callback ID is GUA_ACCOUNT_LOGOUT.

Code Example

UnionAdapterAPI.GetAccountService().Logout("WeChat");