Skip to main content

Logout

[Player Network SDK and MSDK] Log out from the current channel.

Supported Platform​

Supports Android, iOS, Windows platform.

Function Definition​

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

Input Parameters​

ParameterTypeDescription
channelstringThe specified channel to log out.
subChannelstringSub-channel name
For example, Facebook or Twitter.
channelOnlyboolOnly logs out from the channel.

Callback Processing​

The callback processing API is GUABaseResultObservers. The callback data structure is GUABaseResult.

The callback event is LoginBaseResultEvents. The callback methodID is GUA_ACCOUNT_LOGOUT.

Code Sample​

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