NameTag

data class NameTag(val content: NameTagContent, val contact: SharedContact, val band: String) : LabelSpec(source)

A contact as labeltastic's name tag. The QR encodes contact, which is what Share Contact shows.

Constructors

Link copied to clipboard
constructor(content: NameTagContent, contact: SharedContact, band: String)

Properties

Link copied to clipboard
open override val band: String
Link copied to clipboard
val contact: SharedContact
Link copied to clipboard

Functions

Link copied to clipboard
fun LabelSpec.layout(lengthDots: Int, measurer: LabelTextMeasurer, encoder: QrEncoder = LabelQrEncoder): LabelLayout?

Lays this out for a label lengthDots long, or returns null when its QR does not fit the head at 2 dots per module. A contact's long name is cut in the QR payload first; a channel or connect link has nothing to cut.