getRemainingDays static method

int getRemainingDays()

Retrieves the number of remaining days.

return The number of remaining days. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

static int getRemainingDays() {
  Pointer<Int> pRemainingDays = calloc();
  try {
    var err = biosealSDK.id3BiosealLicense_GetRemainingDays(pRemainingDays);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
    final vRemainingDays = pRemainingDays.value;
    return vRemainingDays;
  } finally {
    calloc.free(pRemainingDays);
  }
}