Package-level declarations

Functions

Link copied to clipboard
fun EventSchemaBuilderScope.AddTiles(id: String = randomId(), trigger: EventTrigger, groupingTileId: String, position: AddTilesEventSchema.InsertionPosition = insertAtEnd(), events: EventSchemaBuilderScope.() -> Unit = {}, tiles: TileSchemaBuilderScope.() -> Unit)

Appends tiles as children of the grouping tile identified by groupingTileId, at position, without rebuilding the rest of the screen. Does not consume incomingData. Dispatches onSuccess (no data) when the children were added; onFailure (carrying the thrown exception, logged) when no grouping tile carries groupingTileId, or it cannot hold children.

Link copied to clipboard
fun EventSchemaBuilderScope.CheckIfTileContainsChildren(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, groupingTileId: String, childrenIds: List<String>)

Tests whether the grouping tile identified by groupingTileId currently holds every child in childrenIds, and branches on the answer. Does not consume incomingData. Dispatches onSuccess (no data) when all the listed children are present; onFailure (no data) when at least one is missing, and also when no grouping tile carries groupingTileId — the two cases are indistinguishable downstream.

Link copied to clipboard
fun EventSchemaBuilderScope.GetTileChildrenCount(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, groupingTileId: String)

Reads how many children the grouping tile identified by groupingTileId currently holds. Does not consume incomingData. Dispatches onSuccess (carrying the count as an Int); onFailure (no data) when no grouping tile carries groupingTileId, or it cannot hold children.

Link copied to clipboard

Uses incomingData as-is as the field map — must be a map, or the update is skipped and counted as a failure.

Link copied to clipboard

Uses a literal set of field names to values as the patch.

Uses a literal map of field names to values as the patch.

Link copied to clipboard

Inserts immediately after the child whose id is tileId.

Link copied to clipboard

Inserts after every existing child.

Link copied to clipboard

Inserts at the given zero-based index among the existing children.

Link copied to clipboard

Inserts before every existing child.

Link copied to clipboard

Inserts immediately before the child whose id is tileId.

Link copied to clipboard

Resolves one <|path|>-style template per field name against incomingData, through the client's TemplateProcessor.

Link copied to clipboard
fun EventSchemaBuilderScope.ReloadLazyTiles(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, lazyTileId: String)

Resets the LazyTiles tile identified by lazyTileId back to its loading state — it drops the tiles it had loaded, clears its failure flag, and fires its request again, the way to retry after a failed load. Does not consume incomingData. Dispatches onSuccess (no data) when the signal reached the tile — note this reports the reset, not the reload that follows; the load's own outcome arrives through the tile's own load-success/load-failure triggers. onFailure (carrying the thrown exception) fires when no tile with lazyTileId is currently mounted.

Link copied to clipboard
fun EventSchemaBuilderScope.RemoveTiles(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, groupingTileId: String, tileIds: List<String>)

Removes the children listed in tileIds from the grouping tile identified by groupingTileId — ids that aren't among its children are ignored. Does not consume incomingData. Dispatches onSuccess (no data) when the removal completed; onFailure (carrying the thrown exception, logged) when no grouping tile carries groupingTileId.

Link copied to clipboard
fun EventSchemaBuilderScope.ReplaceTiles(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, groupingTileId: String, tiles: TileSchemaBuilderScope.() -> Unit)

Swaps the whole children list of the grouping tile identified by groupingTileId for tiles. Does not consume incomingData. Dispatches onSuccess (no data) when the children were replaced; onFailure (carrying the thrown exception, logged) when no grouping tile carries groupingTileId.

Link copied to clipboard
fun EventSchemaBuilderScope.UpdateTiles(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, updates: UpdateTilesUpdateBuilderScope.() -> Unit)

Patches tiles in place — the primary way to change what is on screen without refetching it. Each updates entry (built with update) targets a tile by id and merges a map of field names into it: only the listed fields change, and style is merged rather than replaced. The map comes from incomingTileUpdateData (incomingData used as-is when it is a map; skipped and counted as a failure otherwise), inlineTileUpdateData (a literal map declared on the event), or mappedIncomingTileUpdateData (one template per field, each resolved against incomingData through the client's TemplateProcessor, so a payload can be reshaped per field on the way in). All updates are attempted even if one fails. Consumes incomingData for the incoming and mapped forms. Dispatches onSuccess (no data) when every update was applied; onFailure (no data, each failure logged), once at the end, when at least one update failed — no tile carries that id, a mapped template threw, or an incoming update got non-map incomingData.

Link copied to clipboard
fun EventSchemaBuilderScope.WipeTiles(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, groupingTileId: String)

Removes every child of the grouping tile identified by groupingTileId, leaving it empty. Does not consume incomingData. Dispatches onSuccess (no data) when the children were removed; onFailure (carrying the thrown exception, logged) when no grouping tile carries groupingTileId.