Skip to main content

AutoLogin

AndroidiOSWindows
If you are using Unreal Engine, see Unreal Engine 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 and 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 old auto-login interface INTLAPI.AutoLogin, otherwise auto-login will be performed twice.
  2. Please call AutoLogin after receiving GN_READY in the callback of LevelInfinite.Init.

Function definition

public static void AutoLogin();

Observers

Callback handling interface is AuthResultObserver.
Callback data structure is AuthResult.

Callback ID is LI_AUTOLOGIN_ENTER_GAME.

Code sample

LevelInfinite.AutoLogin();