Channels

data class Channels(val content: ChannelLabelContent, val url: String, val band: String) : LabelSpec(source)

A channel set as a channel label. The QR encodes url, the link Share Channels shows.

Constructors

Link copied to clipboard
constructor(content: ChannelLabelContent, url: String, band: String)

Properties

Link copied to clipboard
open override val band: String
Link copied to clipboard
Link copied to clipboard
val url: String

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.