Skip to main content

LoginWithConfirmCode

[Player Network SDK and MSDK] When the login or linking fails, try to log in again with the confirmation code to prevent the user from opening the login interface again. The confirmation code is returned in the backend.

Supported Platform

Supports Android, iOS, Windows platform.
note

MSDK currently does not support Windows.

Function Definition

void LoginWithConfirmCode(int actionType = 0, string confirmcode = "", string extraJson = "{}");

Input Parameters

ParameterTypeDescription
actionTypeint0: General login
1: Links the channel account to the current guest account.
confirmcodestringThe confirmation code generated by the server.
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_LOGIN_WITH_CONFIRM_CODE.

Code Sample

UnionAdapterAPI.GetAccountService().LoginWithConfirmCode();