getRemainingDays static method

int getRemainingDays()

Retrieves the number of remaining days.

return The number of remaining days. throws DocumentException An error has occurred during Document Library execution.

Implementation

static int getRemainingDays() {
  Pointer<Int> pRemainingDays = calloc();
  try {
    var err = documentSDK.id3DocumentLicense_GetRemainingDays(pRemainingDays);
    if (err != DocumentError.success.value) {
      throw DocumentException(err);
    }
    final vRemainingDays = pRemainingDays.value;
    return vRemainingDays;
  } finally {
    calloc.free(pRemainingDays);
  }
}