Skip to main content

Connect [MSDK Only]

[MSDK Only] Associates the account with a specified channel, currently only supports Kwai.

Supported Platform

Supports Android, iOS platform.

Function Definition

void Connect(string channel,  string permissions = "",  string subChannel = "",  string extraJson = "{}");

Input Parameters

ParameterTypeDescription
channelstringThe specified channel to associate
Currently only supports Kwai
permissionsstringThe list of authorized permissions
Separate the permissions by commas. For example, "user_info,inapp_friends".
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 GUAConnectResultObservers. The callback data structure is GUALoginResult.

The callback event is ConnectRetEvents. The callback methodID is GUA_ACCOUNT_CONNECT.

Code Sample

UnionAdapterAPI.GetAccountService().Connect("Kwai");