Builder to build out a
FirebaseVisionBarcodeDetectorOptions
.
Public Constructor Summary
Public Method Summary
FirebaseVisionBarcodeDetectorOptions |
build()
Builds a
FirebaseVisionBarcodeDetectorOptions instance.
|
FirebaseVisionBarcodeDetectorOptions.Builder |
setBarcodeFormats(int format, int... moreFormats)
Sets all the supported barcode formats.
|
Inherited Method Summary
Public Constructors
public FirebaseVisionBarcodeDetectorOptions.Builder ()
Builder for
FirebaseVisionBarcodeDetectorOptions
.
Public Methods
public FirebaseVisionBarcodeDetectorOptions build ()
Builds a
FirebaseVisionBarcodeDetectorOptions
instance.
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 |