getModuleCount static method

int getModuleCount()

Retrieves the number of modules in the license.

return The number of modules in the license. throws DocumentException An error has occurred during Document Library execution.

Implementation

static int getModuleCount() {
  Pointer<Int> pCount = calloc();
  try {
    var err = documentSDK.id3DocumentLicense_GetModuleCount(pCount);
    if (err != DocumentError.success.value) {
      throw DocumentException(err);
    }
    final vCount = pCount.value;
    return vCount;
  } finally {
    calloc.free(pCount);
  }
}