Package-level declarations

Functions

Link copied to clipboard

Publishes a value on the client's system broadcast channel under broadcastId, where the host application and any mounted SystemBroadcastListener tile can pick it up — the outbound half of the bridge between server-declared flows and native app code. data chooses the payload: incomingBroadcastData publishes incomingData, inlineBroadcastData publishes a literal declared on the event. Consumes incomingData as the payload when data is incomingBroadcastData. Dispatches onSuccess (no data) after the value was published; onFailure (no data), only in the incoming-data case, when incomingData is null so there is nothing to publish.

Link copied to clipboard

Asks the client's network layer whether the device currently has an internet connection, and branches on the answer, on the IO dispatcher. Does not consume incomingData. Dispatches onStart before the check runs; onSuccess (no data) when there is a connection; onFailure (no data) when there is none.

Link copied to clipboard
fun EventSchemaBuilderScope.DropCaches(id: String = randomId(), trigger: EventTrigger, events: EventSchemaBuilderScope.() -> Unit = {}, dropScreensCache: Boolean, dropInitialGraphCache: Boolean, dropVersionCache: Boolean)

Clears the client's local caches: dropScreensCache the cached screen payloads, dropInitialGraphCache the cached initial navigation graph, and dropVersionCache the cached version marker used to decide whether cached content is still valid. Does not consume incomingData. Dispatches onSuccess (no data) when the selected caches were dropped; onFailure (carrying the thrown exception, logged) when dropping fails.

Link copied to clipboard

Publishes incomingData as the broadcast payload.

Link copied to clipboard

Publishes a literal data value as the broadcast payload.

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

Hands url to the platform so it opens outside the app — the system browser, or whichever app claims the scheme. Does not consume incomingData. Dispatches onSuccess (no data) after the platform accepted the request; onFailure (carrying the thrown exception, logged) when opening throws, e.g. because nothing on the device handles the URL.