Skip to main content

Open Account Center with Delete Account Option (OpenAccountCenterWithParams)

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

Opens the LI PASS account center interface with a Delete Account button.Deleting the account in the account center removes the link between the game and LI PASS, but does not delete the player's LI PASS account.

Function Definition

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

Parameter Description

ParameterTypeDescription
paramsFINTLDeleteAccountParamsParameters required to delete an account.

FINTLDeleteAccountParams

Member VariableTypeDescription
areaIdintRegion ID of the account to be deleted.
zoneIdintSub-region ID of the account to be deleted.

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

FINTLDeleteAccountParams params = FINTLDeleteAccountParams();  
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.