Skip to main content

Client FakeAccount API Reference

Purpose: All methods of this class just help you log in quickly, and experience the functions of PGOS SDK.

API List

APIDescription
LoginLog in with the specified account. The FAS account does not need to be registered in advance, it can be any string without line breaks ('\r', '\n') and is managed by the game.
AutoLoginLog in with a local historical account (if there is no historical account, one will be created automatically).
CurLoginedUserInfoGet the simulated account being logged in

API Details

Login

Log in with the specified account. The FAS account does not need to be registered in advance, it can be any string without line breaks ('\r', '\n') and is managed by the game.

/// <summary>
/// Log in with the specified account.
/// The FAS account does not need to be registered in advance, it can be any string without line breaks ('\r', '\n') and is managed by the game.
/// </summary>
/// <param name="account">FAS account, if the account is empty, then will use a local historical account.</param>
public void Login(string account, FakeAccountDelegate0 callback);

Parameters:

ParamTypeDescription
accountstringFAS account, if the account is empty, then will use a local historical account.
callbackFakeAccountDelegate0

Return: void

AutoLogin

Log in with a local historical account (if there is no historical account, one will be created automatically).

/// <summary>Log in with a local historical account (if there is no historical account, one will be created automatically).</summary>
public void AutoLogin(FakeAccountDelegate0 callback);

Parameters:

ParamTypeDescription
callbackFakeAccountDelegate0

Return: void

CurLoginedUserInfo

Get the simulated account being logged in

/// <summary>Get the simulated account being logged in</summary>
public FasLoginInfo CurLoginedUserInfo();

Parameters:

(No parameters)

Return: FasLoginInfo

The data of the simulated account

All Delegates

public delegate void FakeAccountDelegate0(PgosResult a0, FasLoginInfo a1);

Type Reference: