Retrieve local login state data
[Player Network SDK and MSDK shared] Retrieve local login state data.
Supported platforms
- Unity
- Unreal Engine
Supports
Android, iOS, Windows platform.Supports
Android, iOS, Windows platform.Function Definition
- Unity
- Unreal Engine
GUALoginResult GetAccountResult();
static bool GetLoginResult(GUALoginResult& login_result);
Return Value
This interface will return GUALoginResult.
Input Parameters
- Unity
- Unreal Engine
No input parameters.
| Parameters | Type | Description |
|---|---|---|
| login_result | Login callback information (GUALoginResult) | Login State Return Value |
Callback Handling
The callback handling interface is GUALoginResultObservers.The callback data structure is GUALoginResult.
- Unity
- Unreal Engine
The callback event is LoginResultEvents. The callback ID is GUA_ACCOUNT_GET_LOGIN_RESULT.
The callback event is OnLoginResultNotify. The callback ID is kMethodIDAccountGetLoginRet.
Code Example
- Unity
- Unreal Engine
GUALoginResult ret = UnionAdapterAPI.GetAccountService().GetAccountResult();
GUA_NAMESPACE::GUALoginResult LoginRet;
bool isSucceeded = GUA_NAMESPACE::GUAAccountService::GetAccountResult(LoginRet);