setBarcodeFormats method

Future<int> setBarcodeFormats(
  1. int formats
)

Sets the barcode formats to be detected.

  • formats: A bitwise OR combination of barcode format constants.

Returns 0 on success, or an error code on failure.

Implementation

Future<int> setBarcodeFormats(int formats) async {
  return _barcodeManager.setBarcodeFormats(formats);
}