DropCaches
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.
Parameters
id
Unique identifier of this event. Defaults to a random id.
trigger
Trigger that fires this event, built via EventTriggers.
events
Child events chained after this one, wired to its triggers (onSuccess, onFailure).
dropScreensCache
Whether to clear cached screen payloads.
dropInitialGraphCache
Whether to clear the cached initial navigation graph.
dropVersionCache
Whether to clear the cached version marker.