Skip to main content

Open Account Center (OpenAccountCenterWithParams)

AndroidiOSWindows
Supported in: LI PASS V1.32.00
If you are using the Unity engine, see OpenAccountCenterWithParams for Unity SDK.

Opens the LI PASS account center interface. The Account Center provides features such as binding LI PASS and third-party login channels, modifying personal information, security settings, and viewing agreement terms. The visibility of the Delete Account button is controlled by the server-side configuration SHOW_DELETE_ACCOUNT_BUTTON.

note

This interface has been updated to use FINTLAccountCenterParams since LI PASS V1.32.

Function Definition

UFUNCTION(BlueprintCallable, Category = "LevelInfinite")
static void OpenAccountCenterWithParams(FINTLAccountCenterParams& params);

Parameter Description

ParameterTypeDescription
paramsFINTLAccountCenterParamsParameters required to open the Account Center.

FINTLAccountCenterParams

Member VariableTypeDescription
AreaIdintRegion ID of the account.
ZoneIdintSub-region ID of the account.

Callback Handler

Callback for LI PASS events. The game needs to handle the callback logic.For more information about callback data structures, see LIEventObserver.

The callback LIEventType for ACCOUNT_CENTER_OPEN and ACCOUNT_CENTER_CLOSE is used to open or close the account center.

The callback LIEventType for DELETE_ACCOUNT_SUCCESS, DELETE_ACCOUNT_FAIL, and DELETE_PARAMETERS_MISSING is used for account deletion.Users can listen for relevant events to obtain the deletion status of the current account and handle subsequent processes.

Code Example

FINTLAccountCenterParams params = FINTLAccountCenterParams();  
params.AreaId = areaId; //int type
params.ZoneId = zoneId; //int type
ULevelInfiniteAPI::OpenAccountCenterWithParams(params);

Interface Example

Image: LI PASS account center interface with Delete Account button

Players can click the Delete Account button to enter the account deletion H5 page and initiate the account deletion process.Developers can use the SHOW_DELETE_ACCOUNT_BUTTON field in the configuration file to set whether to display this button.