ScreenTilesBroadcastChannel

Screen-scoped pub/sub channel — the mechanism behind EventRunningScope.broadcastData(...) and TileRenderingScope's observeScreenTileBroadcastChannel. One fresh instance per screen (a plain field on MosaicScreenStateHolder, not a Koin single), reached in composition via LocalScreenTilesBroadcastChannel — unlike dev.catbit.mosaic.client.ui.sdui.foundation.system_broadcast.SystemBroadcastChannel, which is app-wide. This is the channel ScrollColumnTile/ScrollRowTile/ScrollPagerTile and the overlay open/close/dismiss commands (DisplayNavigationDrawer, DisplaySnackbar, etc.) publish on.

Constructors

Link copied to clipboard
constructor()

Properties

Link copied to clipboard

Read-only view of the channel — collected via TileSchema.observeScreenTileBroadcastChannel (extensions/SharedFlowExtensions.kt).

Functions

Link copied to clipboard

Publishes data to every current subscriber on this screen. Suspends until every current collector has received it; a broadcast with no active subscribers (e.g. the target tile isn't currently composed) is simply dropped, not queued — matching ScrollColumnTile's own documented behavior of being a no-op when no tile with the target id is mounted.