AutoLogin
-
Query the status of the self-built or LevelInfinite account registered via email, including the versions of legal terms agreed to by this account.
-
Query the status of the player's minor verification.
-
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.
- After calling
LevelInfinite.AutoLogin, do not call the old auto-login interface INTLAPI.AutoLogin, otherwise auto-login will be performed twice. - Please call AutoLogin after receiving
GN_READYin 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();