StyleForBarcodeItem

@Immutable
data class StyleForBarcodeItem(val onBarcodeItemStyle: (barcodeItem: BarcodeItem) -> ArOverlayTextConfiguration.Style? = null, val onBarcodeItemText: (barcodeItem: BarcodeItem, text: String) -> String? = null) : ArOverlayTextConfiguration

The style configuration for the text in the AR overlay based on the detected barcode item.

Parameters

onBarcodeItemStyle

A callback function that provides the style for the AR overlay text based on the detected BarcodeItem. The callback run on the main thread. It is recommended to keep the callback lightweight to avoid blocking the main thread.

onBarcodeItemText

A callback function that provides the text to be displayed in the AR overlay based on the detected BarcodeItem. The callback run on the main thread. It is recommended to keep the callback lightweight to avoid blocking the main thread.

Constructors

Link copied to clipboard
constructor(onBarcodeItemStyle: (barcodeItem: BarcodeItem) -> ArOverlayTextConfiguration.Style? = null, onBarcodeItemText: (barcodeItem: BarcodeItem, text: String) -> String? = null)

Properties

Link copied to clipboard
Link copied to clipboard
val onBarcodeItemText: (barcodeItem: BarcodeItem, text: String) -> String?