Home > @magiclane/maps-sdk > ActivationService > deactivate
ActivationService.deactivate() method
Deactivates a product previously activated with a license key.
Initiates a deactivation request for licenseKey and productId. The asynchronous onComplete callback reports the final result and a hint string explaining errors or next steps.
Do not confuse deactivation with deletion of an activation record on the device. Deactivation notifies the activation service that the license is no longer in use on this device, allowing it to be reactivated elsewhere if the license terms permit. Deletion simply removes the activation record locally without notifying the activation service.
After deactivation, the ActivationInfo.status of the corresponding activation will be updated to reflect the deactivated state.
Signature:
static deactivate(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