GetAccountResult
[Player Network SDK and MSDK] Gets authentication results synchronously.
Supported Platform
- 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 API returns GUALoginResult.
Input Parameters
- Unity
- Unreal Engine
No parameters are passed.
Parameter | Type | Description |
---|---|---|
login_result | GUALoginResult | The return value of login state |
Callback Processing
The callback processing API is GUALoginResultObservers. The callback data structure is GUALoginResult.
- Unity
- Unreal Engine
The callback event is LoginResultEvents
.
The callback methodID is GUA_ACCOUNT_GET_LOGIN_RESULT
.
The callback event is OnLoginResultNotify
.
The callback methodID is kMethodIDAccountGetLoginRet
.
Code Sample
- Unity
- Unreal Engine
GUALoginResult ret = UnionAdapterAPI.GetAccountService().GetAccountResult();
GUA_NAMESPACE::GUALoginResult LoginRet;
bool isSucceeded = GUA_NAMESPACE::GUAAccountService::GetAccountResult(LoginRet);