Skip to main content

CheckLogin [MSDK Only]

[MSDK Only] Checks whether the MSDK account is generated. If yes, login result returns. If no, returns is null.

Supported Platform

Supports Android, iOS platform.

Function Definition

void CheckLogin(string channel,  string permissions = "",  string subChannel = "",  string extraJson = "");

Input Parameters

ParameterTypeDescription
channelstringChannel name
For example, "Facebook" or "Twitter".
permissionsstringThe list of authorized permissions
Separate the permissions by commas. For example, "user_info,inapp_friends". The extended field.
For more information, see relative channel descriptions.
subChannelstringSub-channel name
extraJsonstringThe extended field.
For more information, see relative channel descriptions.

Callback Processing

The callback processing API is GUALoginResultObservers. The callback data structure is GUALoginResult.

The callback event is LoginResultEvents. The callback methodID is GUA_ACCOUNT_CHECK_AND_LOGIN.

Code Sample

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