ReadableCodeConfiguration

data class ReadableCodeConfiguration(val isBatchModeEnabled: Boolean = false, val supportedCodeTypes: Set<ReadableCode.Type> = EnumSet.allOf(ReadableCode.Type::class.java), @ColorInt val highlightColor: Int = Color.GREEN, @ColorInt val menuColor: Int = Color.BLACK) : Parcelable

Configuration for readable code (barcode/QR code) scanning.

Constructors

Link copied to clipboard
constructor(isBatchModeEnabled: Boolean = false, supportedCodeTypes: Set<ReadableCode.Type> = EnumSet.allOf(ReadableCode.Type::class.java), @ColorInt highlightColor: Int = Color.GREEN, @ColorInt menuColor: Int = Color.BLACK)

Properties

Link copied to clipboard

The highlight color used for the UI (overlay). Defaults to green. For good constrast, we recommend using a bright color.

Link copied to clipboard

Whether to enable batch mode (continuous scanning) or stop after first detection.

Link copied to clipboard

The menu color used for the UI. Defaults to black. For good constrast, we recommend using a dark color.

Link copied to clipboard

The set of barcode types to scan for. Restricting this improves performance.