Home > @magiclane/maps-sdk > ActivationService > activate
ActivationService.activate() method
Activates a product using the supplied license key.
Starts an activation flow for productId using licenseKey (a UUID v4). The operation is asynchronous and the onComplete callback reports final status and a hint string with supplemental information.
Signature:
static activate(input: {
applicationId: string;
licenseKey: string;
productId?: string;
onComplete: (error: any, hint: string) => void;
}): TaskHandler | null;Parameters
|
Parameter |
Type |
Description |
|---|---|---|
|
{ applicationId, licenseKey, productId, onComplete, } |
(not declared) | |
|
input |
{ applicationId: string; licenseKey: string; productId?: string; onComplete: (error: any, hint: string) => void; } |
input properties:
- applicationId: string
- licenseKey: string
- Optional productId?: string
- onComplete: (error: any, hint: string) => void
Returns:
TaskHandler | null
TaskHandler for observing or canceling the operation, or null if request fails