ActivationService class abstract Activation
Service for activating and managing product licenses for the Magic Lane SDK.
Used in Magic Lane products. Use only if you are instructed to do so by Magic Lane support or sales representatives. The class is experimental and may change without prior notice.
Provides methods to generate license keys, activate and deactivate products, complete online/offline activation flows, query activation state and list activations present on the device.
- Annotations
-
- @experimental
Constructors
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
activate(
{required String applicationId, required String licenseKey, String productId = ProductID.core, required void onComplete(GemError error, String hint)}) → TaskHandler? - Activates a product using the supplied license key.
-
completeActivation(
String activationResponseBlob) → (GemError, String) - Completes an activation that required an extra manual step.
-
completeOfflineActivation(
String offlineActivationKey) → (GemError, String) - Completes an offline activation using the provided offline activation key.
-
completeOfflineDeactivation(
String offlineDeactivationKey) → (GemError, String) - Completes an offline deactivation using the provided deactivation key.
-
deactivate(
{required String applicationId, required String licenseKey, String productId = ProductID.core, required void onComplete(GemError error, String hint)}) → TaskHandler? - Deactivates a product previously activated with a license key.
-
deleteActivation(
String productId) → GemError - Deletes an activation entry identified by its id.
-
generateLicenseKey(
{required String applicationId, String productId = ProductID.core, required void onComplete(GemError error, String hint)}) → TaskHandler? - Generates a new license key for the provided application and product.
-
getActivationsForProduct(
String productId) → List< ActivationInfo> - Returns activations found for the specified product.
-
getProductIds(
{bool includeExpired = false}) → List< String> - Returns the product identifiers found on the device.
-
isActive(
String productId) → bool - Checks whether the given product is currently active on the device.