Skip to main content

Login using plugin cache

AndroidiOSWindows
If you are using the Unity engine, please refer to LoginUsePluginCache in the Unity SDK.
  1. Query the status of a self-built account registered via email or LI PASS, and the version of the legal terms agreed to by this account.

  2. Query the player’s authentication status as a minor.

  3. The email of a registered self-built account will automatically register LI PASS and bind the self-built account’s OpenID to complete LI PASS upgrade.The email not registered with a self-built account will use the email from LoginWithCode/LoginWithPassword to register LI PASS and generate an OpenID.

During callback, if the NeedNotify field is 1, a pop-up should inform the player that their self-built account will upgrade to LI PASS, and this pop-up must include the business legal terms.

After LoginUsePluginCache interface is successful, login is complete, and compliance process continues.

Function Definition

UFUNCTION(BlueprintCallable, Category = "LevelInfinite")
static void LoginUsePluginCache();

Callback processing

The callback handling interface is AuthResultObserver.The callback data structure is AuthResult.

The callback ID is kMethodIDAuthLoginUsingPluginCache.

Code example

ULevelInfiniteAPI::LoginUsePluginCache();