Package-level declarations
Functions
Link copied to clipboard
fun TileSchemaBuilderScope.SystemBroadcastListener(id: String = randomId(), events: EventSchemaBuilderScope.() -> Unit = {}, style: StyleSchemaBuilderScope.() -> Unit = {}, searchableTerms: List<String>? = null, visibility: TileSchema.Visibility = visible(), tiles: TileSchemaBuilderScope.() -> Unit)
Renders tiles and, while they are on screen, subscribes to the app-wide system broadcast channel — the tile that lets host-app signals (push notifications, connectivity changes, anything the client publishes on that channel) drive server-declared event flows. The subscription lives only as long as the tile is composed; while it is off screen, broadcasts are not observed. Children are hosted in a Box carrying style and visibility, so they are stacked rather than emitted into the parent's scope. Dispatches onSystemBroadcast(broadcastId) for each broadcast received, carrying the broadcast payload as the event's incoming data, so events can be wired per broadcast.