This class is used to setup license for the viewer. License should be set before initializing the viewer.

const aViewer = new OccViewer('/');
aViewer.license.licenseServerUrl = 'http://localhost:9123';
aViewer.license.features = [LicenseFeatures.Core, LicenseFeatures.Medical];
...
aViewer.init();

Constructors

Accessors

  • get licenseError(): string
  • Get license error

    Returns string

  • set licenseFileUrl(theUrl: string): void
  • Set license file url

    Parameters

    • theUrl: string

    Returns void

  • set licenseServerUrl(theUrl: string): void
  • Set license url

    Parameters

    • theUrl: string

    Returns void