getLicenseType static method

LicenseType getLicenseType()

Retrieves the license type.

return The license type. throws DocumentException An error has occurred during Document Library execution.

Implementation

static LicenseType getLicenseType() {
  Pointer<Int32> pDocumentLicenseType = calloc();
  try {
    var err = documentSDK.id3DocumentLicense_GetLicenseType(pDocumentLicenseType);
    if (err != DocumentError.success.value) {
      throw DocumentException(err);
    }
    final vDocumentLicenseType = LicenseTypeX.fromValue(pDocumentLicenseType.value);
    return vDocumentLicenseType;
  } finally {
    calloc.free(pDocumentLicenseType);
  }
}