Skip to main content

LoginUsePluginCache

AndroidiOSWindows
If you were looking for the method for use with Unity, see LoginUsePluginCache for Unity SDK.
  1. Check the status of the custom account or LI PASS registered by email, and the version of the legal terms agreed to by this account.

  2. Query the player's age verification status.

  3. The mailbox that has registered a custom account will automatically register LI PASS and link the OpenID of the custom account to complete the upgrade of LI PASS. For emails that have not registered a custom account, LI PASS will be registered with the email passed in LoginWithCode/LoginWithPassWord and an OpenID will be generated.

When calling back, if the NeedNotify field is 1, a box needs to pop up to remind the player that the custom account will be upgraded to LI PASS, and the box needs to include the legal terms of the business.

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

Function definition

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

Observers

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

The callback methodID is kMethodIDAuthLoginUsingPluginCache.

Code sample

ULevelInfiniteAPI::LoginUsePluginCache();