GmsBarcodeScannerOptions.Builder

public static class GmsBarcodeScannerOptions.Builder extends Object

Builder to build out a GmsBarcodeScannerOptions.

Public Constructor Summary

Public Method Summary

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.

Inherited Method Summary

Public Constructors

public Builder ()

Public Methods

public GmsBarcodeScannerOptions.Builder allowManualInput ()

Allows users to input barcode manually. Disallowed by default.

public GmsBarcodeScannerOptions build ()

Builds a GmsBarcodeScannerOptions instance.

public GmsBarcodeScannerOptions.Builder enableAutoZoom ()

Allows auto-zoom feature, disabled by default.

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

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.

Parameters
format supported barcode format
moreFormats more supported barcode formats