FirebaseVisionBarcodeDetectorOptions.Builder

public static class FirebaseVisionBarcodeDetectorOptions.Builder extends Object

Builder to build out a FirebaseVisionBarcodeDetectorOptions.

Public Constructor Summary

Public Method Summary

Inherited Method Summary

Object
clone()
boolean
equals(Object arg0)
void
finalize()
final Class<?>
getClass()
int
hashCode()
final void
notify()
final void
notifyAll()
String
toString()
final void
wait(long arg0, int arg1)
final void
wait(long arg0)
final void
wait()

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

ML Kit for Firebase provided ready-to-use ML solutions for app developers. New apps should use the standalone ML Kit library for on-device ML and Firebase ML for cloud-based ML.

Updated Feb 20, 2025

ML Kit for Firebase provided ready-to-use ML solutions for app developers. New apps should use the standalone ML Kit library for on-device ML and Firebase ML for cloud-based ML.

Updated Feb 20, 2025

ML Kit for Firebase provided ready-to-use ML solutions for app developers. New apps should use the standalone ML Kit library for on-device ML and Firebase ML for cloud-based ML.

Updated Feb 20, 2025