|
Maps SDK for C++ 1.0.0
|
ActivationService object. More...


Public Member Functions | |
| ActivationService (const ActivationService &)=delete | |
| ActivationService (ActivationService &&)=default | |
| Default move constructor noexcept is deduced. | |
| ActivationService & | operator= (const ActivationService &)=delete |
| Copy assignment operator is deleted to prevent copying of this service. | |
| ActivationService & | operator= (ActivationService &&)=default |
| Default move assignment operator. | |
| int | generateLicenseKey (ProgressListener listener, const gem::String &applicationId, const gem::String &productId=gem::ProductID::CORE) |
| Generates a new license key for the given application and productId. | |
| int | activate (ProgressListener listener, const gem::String &applicationId, const gem::String &licenseKey, const gem::String &productId=gem::ProductID::CORE) |
| Performs an activation of the supplied ProductID. | |
| int | deactivate (ProgressListener listener, const gem::String &applicationId, const gem::String &licenseKey, const gem::String &productId=gem::ProductID::CORE) |
| Performs a deactivation of the supplied license key and product. | |
| std::pair< int, gem::String > | completeActivation (const gem::String &activationResponseBlob) |
| Used to finalize an activation that required the extra step. | |
| std::pair< int, gem::String > | completeOfflineActivation (const gem::String &offlineActivationKey) |
| Used to finalize an OFFLINE activation that required the extra step. | |
| std::pair< int, gem::String > | completeOfflineDeactivation (const gem::String &offlineDeactivationKey) |
| Used to finalize an OFFLINE deactivation that required the extra step. | |
| bool | isActive (const gem::String &productId) const |
| Used to check quickly if the product is active or not on this device. | |
| gem::StringList | getProductIds (bool bIncludeExpired=false) const |
| Gets a list of product ids (gem::ProductID) that are found on the device. | |
| gem::ActivationInfoList | getActivationsForProduct (const gem::String &productId) |
| Gets a list of product activations that are found on the device. | |
| gem::ActivationInfoList | getActivationsForGate (gem::EGate gate) |
| Gets a list of product activations that are found on the device for the given gate. | |
| int | deleteActivation (const gem::String &activationId) |
| Deletes the activation that matches the given id. | |
| void | onUsageDetected () |
| Notifies the activation service that usage of the SDK has been detected. | |
| void | onAppTokenRejected (const gem::String &appToken) |
| Notifies the activation service that the given app token has been rejected by the online services. | |
| void | setUseGPSTimeForActivation (bool useGpsTime) |
| Sets whether GPS time should be used for activation related operations. | |
| void | setMandatoryGPSTimeForActivation (bool mandatoryGpsTime) |
| Sets whether GPS time should be mandatory for activation related operations. | |
ActivationService object.
Implements share-read / write Api object over IActivationService.
This behaves like a singleton, i.e. all instances are shared behind the same API interface.
Handles SDK and feature activation.
Provides methods to activate the SDK with license keys or tokens, enabling access to premium or restricted features.
Use of gem::ActivationService is required when the SDK initialization fails with gem::error::KActivation. Not all SDKs require the use of this service, for example the evaluation ones.
|
inline |
Performs an activation of the supplied ProductID.
The process involves sending an HTTP request to Magic Lane Services.
| [in] | listener | The listener for the activation progress notifications. |
| [in] | applicationId | The application id for which the activation is performed. |
| [in] | licenseKey | version 4 UUID which allows the product activation. |
| [in] | productId | The kind of product that wants to be activated. If no other instructions were supplied, use the default (ProductID::CORE). The errors from below will also be delivered on IProgressListener::notifyComplete. |
|
inline |
Used to finalize an activation that required the extra step.
| [in] | activationResponseBlob | The activation response blob obtained after doing the request described in the manual. |
|
inline |
Used to finalize an OFFLINE activation that required the extra step.
| [in] | offlineActivationKey | The offline_activation_key short string of letters and digits obtained after doing the request described in the manual. |
|
inline |
Used to finalize an OFFLINE deactivation that required the extra step.
| [in] | offlineDeactivationKey | The offline_deactivation_key short string of letters and digits obtained after doing the request described in the manual. |
|
inline |
Performs a deactivation of the supplied license key and product.
The process involves sending an HTTP request to Magic Lane Services.
| [in] | listener | The listener for the activation progress notifications. |
| [in] | applicationId | The application id for which the deactivation is performed. Required for security purposes. |
| [in] | licenseKey | version 4 UUID which identifies the activation. |
| [in] | productId | The kind of product that wants to be deactivated. If no other instructions were supplied, use the default (ProductID::CORE). The errors from below will also be delivered on IProgressListener::notifyComplete. |
|
inline |
Deletes the activation that matches the given id.
Note: it does NOT deactivate it, it deletes it directly.
| [in] | activationId | The id of the activation that wants to be deleted. |
|
inline |
Generates a new license key for the given application and productId.
The process involves sending an HTTP request to Magic Lane Services.
| [in] | listener | The listener for the activation progress notifications. |
| [in] | applicationId | The application id for which the license key is created. |
| [in] | productId | The kind of product that the key will be bound to. The errors from below will also be delivered on IProgressListener::notifyComplete. |
|
inline |
Gets a list of product activations that are found on the device for the given gate.
| [in] | gate | The gate for which the activations will be retrieved. |
|
inline |
Gets a list of product activations that are found on the device.
| [in] | productId | The product for which the activations will be retrieved. |
|
inline |
Gets a list of product ids (gem::ProductID) that are found on the device.
| [in] | bIncludeExpired | Choose whether or not to include the expired product ids as well. Defaults to false. |
|
inline |
Used to check quickly if the product is active or not on this device.
| [in] | productId | The product that will be checked. |
|
inline |
Notifies the activation service that the given app token has been rejected by the online services.
| [in] | appToken | The app token that was rejected. |
|
default |
Default move assignment operator.
Uses the compiler-generated default implementation for move assignment.
|
delete |
Copy assignment operator is deleted to prevent copying of this service.
|
inline |
Sets whether GPS time should be mandatory for activation related operations.
| [in] | mandatoryGpsTime | If true, GPS time will be mandatory for activation operations. If set to true and no GPS time is available, activation operations will fail. |
|
inline |
Sets whether GPS time should be used for activation related operations.
| [in] | useGpsTime | If true, GPS time will be used for activation operations; otherwise, system time will be used. |