Authentication Service Interface.
More...
#include <auth_service_interface.h>
Authentication Service Interface.
Definition at line 268 of file auth_service_interface.h.
◆ EnableAutoRegisterNotificationServiceForLogin()
| virtual void IAuthService::EnableAutoRegisterNotificationServiceForLogin |
( |
bool | bEnable | ) |
|
|
pure virtual |
Enables or disables auto register notification service. This is enabled by default.
- Parameters
-
| bEnable | true to enable, false to disable. |
◆ GetAccountInfo()
Gets login account information.
- Returns
- If you have logged in your account successfully, the return value is a pointer to IAccountInfo. Otherwise, this function returns nullptr.
◆ GetAuthResult()
| virtual AuthResult IAuthService::GetAuthResult |
( |
| ) |
|
|
pure virtual |
Gets authentication status.
- Returns
- If the function succeeds, it returns the authentication status.
◆ GetDirectShareServiceHelper()
| virtual IDirectShareServiceHelper * IAuthService::GetDirectShareServiceHelper |
( |
| ) |
|
|
pure virtual |
Gets direct share service helper interface.
- Returns
- If you have logged in your account successfully, the return value is a pointer to IDirectShareServiceHelper. Otherwise, this function returns nullptr.
◆ GetLoginStatus()
Gets login status.
- Returns
- If the function succeeds, it returns the login status. Otherwise, this function returns an error.
◆ GetNotificationServiceHelper()
| virtual INotificationServiceHelper * IAuthService::GetNotificationServiceHelper |
( |
| ) |
|
|
pure virtual |
Gets notification service helper interface.
- Returns
- If the function succeeds, the return value is a pointer to INotificationServiceHelper. Otherwise, this function fails and returns nullptr.
◆ GetSDKIdentity()
| virtual const zchar_t * IAuthService::GetSDKIdentity |
( |
| ) |
|
|
pure virtual |
Gets SDK identity.
- Returns
- If the function succeeds, it returns the SDK identity. Otherwise, this function fails and returns nullptr.
◆ LogOut()
| virtual SDKError IAuthService::LogOut |
( |
| ) |
|
|
pure virtual |
Performs account logout.
/
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
◆ RegisterNotificationService()
| virtual SDKError IAuthService::RegisterNotificationService |
( |
const zchar_t * | accessToken | ) |
|
|
pure virtual |
Registers notification service.
- Parameters
-
| accessToken | The initialization parameter of notification service. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
◆ SDKAuth()
Authenticates SDK with JWT token.
- Parameters
-
| authContext | The parameter to be used for authentication SDK. |
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.
◆ SetEvent()
Sets 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, this function returns an error.
◆ UnregisterNotificationService()
| virtual SDKError IAuthService::UnregisterNotificationService |
( |
| ) |
|
|
pure virtual |
Unregisters notification service.
- Returns
- If the function succeeds, the return value is SDKERR_SUCCESS. Otherwise, this function returns an error.