getFieldType method

FieldType getFieldType()

Gets the the field type.

return The field type. throws BiosealException An error has occurred during Bioseal Library execution.

Implementation

FieldType getFieldType() {
  Pointer<Int32> pFieldType = calloc();
  try {
    var err = biosealSDK.id3BiosealField_GetFieldType(_pHandle.value, pFieldType);
    if (err != BiosealError.success.value) {
      throw BiosealException(err);
    }
    final vFieldType = FieldTypeX.fromValue(pFieldType.value);
    return vFieldType;
  } finally {
    calloc.free(pFieldType);
  }
}