Builder to build out a GmsBarcodeScannerOptions.
|
Builder()
Builder for
GmsBarcodeScannerOptions.
|
| GmsBarcodeScannerOptions.Builder |
allowManualInput()
Allows users to input barcode manually.
|
| GmsBarcodeScannerOptions |
build()
Builds a
GmsBarcodeScannerOptions instance.
|
| GmsBarcodeScannerOptions.Builder |
enableAutoZoom()
Allows auto-zoom feature, disabled by default.
|
| GmsBarcodeScannerOptions.Builder |
setBarcodeFormats(int format, int... moreFormats)
Sets the interested barcode formats defined in
Barcode.BarcodeFormat.
|
Builder for GmsBarcodeScannerOptions.
Allows users to input barcode manually. Disallowed by default.
Builds a GmsBarcodeScannerOptions
instance.
Allows auto-zoom feature, disabled by default.
Sets the interested barcode formats defined in Barcode.BarcodeFormat.
e.g. setBarcodeFormats(Barcode.FORMAT_QR_CODE,
Barcode.FORMAT_UPC_A).
Reducing the number of supported formats will make the barcode scanner faster.
Default: all formats are supported.
| format | supported barcode format |
|---|---|
| moreFormats | more supported barcode formats |