LoginUsePluginCache
If you were looking for the method for use with Unreal Engine, see LoginUsePluginCache for Unreal Engine SDK.
-
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.
-
Query the player's age verification status.
-
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
public static void LoginUsePluginCache();
Observers
The callback processing interface is AuthResultObserver. The callback data structure is AuthResult.
The callback methodID is INTL_AUTH_LOGIN_USING_PLUGIN_CACHE.
Code sample
LevelInfinite.LoginUsePluginCache();