Builder

class Builder

Builder for ScanOptions.

Constructors

Link copied to clipboard
constructor()

Functions

Link copied to clipboard

Adds a scanner configuration to use for scanning.

Link copied to clipboard

Adds multiple scanner configurations to use for scanning.

Link copied to clipboard

Builds the ScanOptions instance.

Link copied to clipboard
fun setEnableLight(enableLight: Boolean): ScanOptions.Builder

Sets whether to enable the scanner's light.

Link copied to clipboard

Sets the barcode formats to scan for.

Link copied to clipboard
fun setShowControls(showControls: Boolean): ScanOptions.Builder

Sets whether to show UI controls during scanning.

Link copied to clipboard
fun setTimeout(timeout: Duration): ScanOptions.Builder

Sets the timeout duration for the scanning operation.