RowElement

@ObjCName(name = "TeyaRowElement", exact = true)
sealed interface RowElement

Represents a row element that can be part of a receipt row. It serves as the supertype for the different types of elements that can be displayed in a receipt, such as text, images, or QR codes.

Inheritors

Types

Link copied to clipboard
@ObjCName(name = "TeyaRowElementImage", exact = true)
data class Image(val imageToPrint: Image, val align: Align = Align.Left) : RowElement

Represents an image element that can be displayed within a receipt row.

Link copied to clipboard
@ObjCName(name = "TeyaRowElementQrCode", exact = true)
data class QrCode(val url: String, val align: Align = Align.Left) : RowElement

Represents a QR code element that can be displayed within a receipt row.

Link copied to clipboard
@ObjCName(name = "TeyaRowElementText", exact = true)
data class Text(val text: String, val bold: Boolean = false, val align: Align = Align.Left) : RowElement

Represents a text element that can be displayed within a receipt row.