Skip to main content

AutoLogin

AndroidiOSWindows
If you are using the Unity engine, see Unity SDK's AutoLogin.
  1. Query the status of the self-built or LevelInfinite account registered via email, including the versions of legal terms agreed to by this account.

  2. Query the status of the player's minor verification.

  3. Auto login to LI PASS.Successful auto login, player enters the game.If auto login fails, call OpenLoginPanel for manual login.

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

After clicking Agree & Continue, call UpgradeSaccToLI.

After the UpgradeSaccToLI interface succeeds, the upgrade is complete, continue with the compliance process.

caution
  1. After calling LevelInfinite.AutoLogin, do not call the legacy auto login API INTLAPI.AutoLogin, otherwise auto login will be triggered twice.
  2. Please call AutoLogin after receiving GN_READY in the callback of LevelInfinite.Init.

Function definition

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

Observers

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

The callback methodID is kLIAutoLoginEnterGame.

Code sample

ULevelInfiniteAPI::AutoLogin();