FirebaseVisionBarcodeDetectorOptions.Builder

public static class FirebaseVisionBarcodeDetectorOptions.Builder extends Object

Builder to build out a FirebaseVisionBarcodeDetectorOptions.

Public Constructor Summary

Public Method Summary

FirebaseVisionBarcodeDetectorOptions
FirebaseVisionBarcodeDetectorOptions.Builder
setBarcodeFormats(int format, int... moreFormats)
Sets all the supported barcode formats.

Inherited Method Summary

Public Constructors

public FirebaseVisionBarcodeDetectorOptions.Builder ()

Public Methods

public FirebaseVisionBarcodeDetectorOptions.Builder setBarcodeFormats (int format, int... moreFormats)

Sets all the supported barcode formats.

e.g. setBarcodeFormats(FirebaseVisionBarcode.FORMAT_QR_CODE, FirebaseVisionBarcode.FORMAT_UPC_A).

Reducing the number of supported formats will make the barcode detector faster.

Only the last call will be respected if calling this method multiple times

Default: all formats are supported.

Parameters
format supported barcode format
moreFormats