GmsBarcodeScannerOptions.Builder

public static class GmsBarcodeScannerOptions.Builder extends Object

Builder to build out a GmsBarcodeScannerOptions.

Public Constructor Summary

Public Method Summary

GmsBarcodeScannerOptions
build()
Builds a GmsBarcodeScannerOptions instance.
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 build ()

Builds a GmsBarcodeScannerOptions instance.

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