DropCachesEventSchema

@Serializable
@SerialName(value = "DropCaches")
data class DropCachesEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val dropScreensCache: Boolean, val dropInitialGraphCache: Boolean, val dropVersionCache: Boolean) : EventSchema

Clears the client's local caches. Each flag selects one store: dropScreensCache the cached screen payloads, dropInitialGraphCache the cached initial navigation graph, and dropVersionCache the cached version marker used to decide whether the cached content is still valid.

incomingData consumed: not used.

Triggers fired:

  • OnSuccessEventTrigger — when the selected caches were dropped. No data is passed downstream.

  • OnFailureEventTrigger — when dropping failed; the Throwable is passed as incomingData and the error is logged.

Constructors

Link copied to clipboard
constructor(id: String, trigger: EventTrigger, events: SerializableImmutableList<EventSchema>?, dropScreensCache: Boolean, dropInitialGraphCache: Boolean, dropVersionCache: Boolean)

Properties

Link copied to clipboard
@SerialName(value = "dropInitialGraphCache")
val dropInitialGraphCache: Boolean
Link copied to clipboard
@SerialName(value = "dropScreensCache")
val dropScreensCache: Boolean
Link copied to clipboard
@SerialName(value = "dropVersionCache")
val dropVersionCache: Boolean
Link copied to clipboard
@SerialName(value = "events")
open override val events: SerializableImmutableList<EventSchema>?

This event's own children — each declaring, via its own trigger, which of this event's outgoing triggers runs it. null when this event declares no children.

Link copied to clipboard
@SerialName(value = "id")
open override val id: String

Unique identifier — how TriggerEvent/UpdateEvents address this event by id. Defaults to a random id when omitted from the DSL.

Link copied to clipboard
@SerialName(value = "trigger")
open override val trigger: EventTrigger

The condition that must occur for this event to run — matched by structural equality (data class/data object equality) against whatever trigger value fired, never by any kind of subscription or listener registry.