Authentication Service Interface.
More...
#include <auth_service_interface.h>
Authentication Service Interface.
Definition at line 266 of file auth_service_interface.h.
◆ EnableAutoRegisterNotificationServiceForLogin()
virtual void IAuthService::EnableAutoRegisterNotificationServiceForLogin |
( |
bool | bEnable | ) |
|
|
pure virtual |
Enable or disable auto register notification service. This is enabled by default.
- Parameters
-
bEnable | true means enabled. |
◆ GetAccountInfo()
Get login account information.
- Returns
- If you has logged in your account successfully, the return value is a pointer to IAccountInfo, otherwise returns nullptr.
◆ GetAuthResult()
virtual AuthResult IAuthService::GetAuthResult |
( |
| ) |
|
|
pure virtual |
Get authentication status.
- Returns
- The return value is authentication status. For more details, see AuthResult enum.
◆ GetDirectShareServiceHelper()
Get direct share service helper interface.
- Returns
- If you logged in your account successfully, the return value is the object pointer IDirectShareServiceHelper. Otherwise is nullptr.
◆ GetLoginStatus()
Get login status.
- Returns
- The return value is login status. For more details, see LOGINSTATUS enum.
◆ GetNotificationServiceHelper()
Get notification service helper interface.
- Returns
- If the function succeeds, the return value is a pointer to INotificationServiceHelper. Otherwise returns nullptr.
◆ GetSDKIdentity()
virtual const zchar_t * IAuthService::GetSDKIdentity |
( |
| ) |
|
|
pure virtual |
Get SDK identity.
- Returns
- The SDK identity.
◆ LogOut()
virtual SDKError IAuthService::LogOut |
( |
| ) |
|
|
pure virtual |
Account logout.
/
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see SDKError enum.
◆ RegisterNotificationService()
virtual SDKError IAuthService::RegisterNotificationService |
( |
const zchar_t * | accessToken | ) |
|
|
pure virtual |
Register notification service.
- Parameters
-
accessToken | Initialize parameter of notification service. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see SDKError enum.
◆ SDKAuth()
SDK Authentication with jwt token.
- Parameters
-
authContext | The parameter to be used for authentication SDK, see AuthContext structure. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see SDKError enum.
◆ SetEvent()
Set the authentication service callback event handler.
- Parameters
-
pEvent | A pointer to receive authentication event. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see SDKError enum.
◆ UnregisterNotificationService()
virtual SDKError IAuthService::UnregisterNotificationService |
( |
| ) |
|
|
pure virtual |
UnRegister notification service.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise failed. For detailed error codes, see SDKError enum.