containsBiometricData method

bool containsBiometricData(
  1. BiometricDataType biometricDataType,
  2. String? biometricFormat
)

Returns a value indicating whether the field (or one of its child fields) contains biometric data of the specified type and/or format.

param biometricDataType The biometric data type. param biometricFormat The biometric data format. return A value indicating whether the field (or one of its child fields) contains biometric data of the specified type and/or format. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

bool containsBiometricData(BiometricDataType biometricDataType, String? biometricFormat) {
  Pointer<Char>? pBiometricFormat = biometricFormat?.toNativeUtf8().cast<Char>();
  Pointer<Bool> pResult = calloc();
  try {
    var err = biosealSDK.id3BiosealField_ContainsBiometricData(_pHandle.value, biometricDataType.value, pBiometricFormat ?? nullptr, pResult);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
    final vResult = pResult.value;
    return vResult;
  } finally {
    if (pBiometricFormat != null) {
      calloc.free(pBiometricFormat);
    }
    calloc.free(pResult);
  }
}