Home > @magiclane/maps-sdk > ActivationService > generateLicenseKey

ActivationService.generateLicenseKey() method

Generates a new license key for the provided application and product.

Requests a license key from the remote activation service for the given applicationId and optional productId. The operation is asynchronous and progress/results are delivered via the onComplete callback.

The generated license key is a UUID v4 string that uniquely identifies the license for activation purposes.

Signature:

static generateLicenseKey(input: {
        applicationId: string;
        productId?: string;
        onComplete: (error: any, hint: string) => void;
    }): TaskHandler | null;

Parameters

Parameter

Type

Description

{ applicationId, productId, onComplete, }

(not declared)

input

{ applicationId: string; productId?: string; onComplete: (error: any, hint: string) => void; }

input properties:

  • applicationId: 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