Render

fun Render(tileSchema: TileSchema, onEvent: (UIEvent) -> Unit)

Renders tileSchema by looking up the TileRenderer registered for its concrete class and invoking its Render, inside a fresh TileRenderingScope built from tileSchema's own id and events plus the given onEvent sink.

A tile whose visibility is GONE (tileSchema.isGone()) is skipped entirely — nothing is composed for it at all, not even an invisible placeholder, which is the difference between GONE and INVISIBLE (the latter is left to each renderer's own use of Modifier.visible(isVisible()), and still gets composed here). If no TileRenderer is registered for tileSchema's class at all — the schema's own class was never included in MosaicDependencyInjectionConfig.tileDefinitions — nothing is rendered and an error is logged via MosaicLogger instead of throwing.

Parameters

tileSchema

the tile to render.

onEvent

sink every interaction with this tile (and its children, if any) funnels into.