TicketBarcode

data class TicketBarcode(val payload: String, val symbology: TicketBarcodeFormat = TicketBarcodeFormat.QR_CODE, val encoding: String? = null, val altText: String? = null, val rotating: Boolean = false) : Parcelable

One barcode on a ticket (solidshare:Barcode). A pass may carry several.

Entirely modelled with minted terms: schema:Barcode is an image class with no payload or symbology property, and schema.org has no symbology term at all.

Constructors

Link copied to clipboard
constructor(payload: String, symbology: TicketBarcodeFormat = TicketBarcodeFormat.QR_CODE, encoding: String? = null, altText: String? = null, rotating: Boolean = false)

Properties

Link copied to clipboard

Human-readable fallback shown beneath the barcode.

Link copied to clipboard

IANA charset of payload (e.g. iso-8859-1); round-tripping it wrong corrupts the barcode.

Link copied to clipboard

The exact bytes the issuer encoded — re-rendered verbatim so a gate scanner reads an identical barcode.

Link copied to clipboard

true when the payload is known to rotate server-side (SafeTix, AXS) and so will not scan later — the UI should say so rather than show a dead barcode.

Link copied to clipboard

The symbology of payload.

Functions

Link copied to clipboard
abstract fun describeContents(): Int
Link copied to clipboard
abstract fun writeToParcel(p0: Parcel, p1: Int)