Authentication Service Interface.
More...
#include <auth_service_interface.h>
Authentication Service Interface.
Definition at line 185 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
-
[in] | bEnable | True means enabled, otherwise not.
|
◆ GetAccountInfo()
Get login account information.
- Returns
- If you has logged in your account successfully, the return value is a pointer to IAccountInfo, otherwise is nullptr.
◆ GetAuthResult()
virtual AuthResult IAuthService::GetAuthResult |
( |
| ) |
|
|
pure virtual |
Get authentication status.
- Returns
- The return value is authentication status. To get extended error information, 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. To get extended error information, 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. To get extended error information, 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. To get extended error information, 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. To get extended error information, 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. To get extended error information, 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. To get extended error information, see SDKError enum.