Compose Camera LogoCompose Camera
PluginsMLKit Barcode

Barcode

API reference for Barcode data class.

Barcode

Represents a single detected barcode.

data class Barcode(
    val rawValue: String,
    val format: BarcodeFormat,
    val displayValue: String? = null
)

Properties

PropertyTypeDescription
rawValueStringThe raw string value encoded in the barcode.
formatBarcodeFormatThe format of the barcode (e.g., QR_CODE, EAN_13).
displayValueString?A more human-readable value, if available.

On this page