Account Center
This document will introduce the details about the LI PASS Account Center.
For a product introduction to the Account Center, you can browse the Account Center Module.
- The Account Center currently supports access on mobile and PC platforms, but does not support standard access on console platforms yet.
- If you require manual service, you can consult on enterprise WeChat Player Network Assistant .
Open Account Center
There are two types of Account Center provided by LI PASS:
- Regular Account Center
- Account Center with Account Deletion Functionality
Both types of Account Centers integrate the ability to bind LI PASS and third-party login channels, modify personal information, security settings, and view relevant protocol terms.
Apart from the above functions, the Account Center with account deletion functionality also integrates the account deletion function.
Games can choose one to integrate according to their specific needs.
- The account deletion function needs to be manually activated (for specific activation details, please consult fanfanliang(Liang Xiaotong) );
- Before opening the account deletion function, the Account Center with deletion functionality may experience failures, so games can first integrate the regular Account Center and switch as needed later.
Standard Account Center interface description
- Unity
- Unreal Engine
Add an Account Center entry button in an appropriate place in the game, and call the OpenAccountCenter interface in the button’s click event to open the standard Account Center.
LevelInfinite.OpenAccountCenter();
Add an Account Center entry button in an appropriate place in the game, and call the OpenAccountCenter interface in the button’s click event to open the standard Account Center.
ULevelInfiniteAPI::OpenAccountCenter();
Interface Description of the Account Center with Deletion Functionality
To integrate an Account Center with an account deletion button, add the following configurations in the [INTL Account] node in INTLConfig.ini:
[INTL Account]
SHOW_DELETE_ACCOUNT_BUTTON = 1
- Unity
- Unreal Engine
Add an Account Center entry button in an appropriate place in the game, and call the OpenAccountCenterWithParams interface in the button’s click event
LevelInfinite.OpenAccountCenterWithParams();
Add an Account Center entry button in an appropriate place in the game, and call the OpenAccountCenterWithParams interface in the button’s click event
ULevelInfiniteAPI::OpenAccountCenterWithParams();
Callback Handling for Account Center
You may need to pay attention to the opening and closing status of the Account Center, which can be handled using the following code for callback:
- Unity
- Unreal Engine
- When the game calls to open the Account Center, it needs to listen to the
ACCOUNT_CENTER_OPENandACCOUNT_CENTER_CLOSEevents; - Refer to LIEventType event and LI PASS Event Callback Information (LIEventObserver).
Sample Code:
LevelInfinite.AddLIEventObserver(OnLIBaseEventResult);
private void OnLIBaseEventResult(LIBaseEventResult liRet)
{
switch (liRet.lIEventType)
{
case LIEventType::OPEN_ACCOUNT_CENTER:
{
logStr = TEXT("Account center open");
break;
}
case LIEventType::CLOSE_ACCOUNT_CENTER:
{
logStr = TEXT("Account center close");
break;
}
}
}
- When the game calls to open the Account Center, it needs to listen to the
ACCOUNT_CENTER_OPENandACCOUNT_CENTER_CLOSEevents; - See LIEventType Events and LI PASS Event Callback Information (LIEventObserver) for details.
Example code:
LIEventObserver = ULevelInfiniteAPI::GetEventDelegate().AddUObject(this, &USample::OnLIEvent_Callback);
void USample::OnLIEvent_Callback(FLIBaseEvent Event)
{
FString logStr;
switch (Event.EventType) {
case ELIEventType::ACCOUNT_CENTER_OPEN:
{
logStr = TEXT("Account center open");
break;
}
case ELIEventType::ACCOUNT_CENTER_CLOSE:
{
logStr = TEXT("Account center close");
break;
}
}
}
Customize Account Center appearance
The LI PASS Account Center provides a standard UI template for games to quickly integrate and use.LI PASS also supports customizing the appearance of the Account Center to ensure it matches the style of the game.For details on customizing the Account Center Appearance, refer to Customizing the Account Center Appearance
- For detailed integration of custom UI/UX features, please consult the Player Network Assistant.