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 & 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 legacy auto login API INTLAPI.AutoLogin, otherwise auto login will be triggered twice. - Please call
AutoLoginafter receivingGN_READYin 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();