Entry

@Serializable
data class Entry(val screenId: String, val initialTiles: SerializableImmutableList<TileSchema>, val initialEvents: SerializableImmutableList<EventSchema>, val failureTiles: SerializableImmutableList<TileSchema>, val failureEvents: SerializableImmutableList<EventSchema>, val transition: ContentTransitionSchema? = null, val popTransition: ContentTransitionSchema? = null, val predictivePopTransition: ContentTransitionSchema? = null)

One registered screen within the graph — the app-facing counterpart of dev.catbit.mosaic.core.data.responses.graph.GraphResponse.Entry, identical shape, staged by MosaicApplicationStateHolder into ScreenExtrasHolder for whenever this screen actually opens.

Constructors

Link copied to clipboard
constructor(screenId: String, initialTiles: SerializableImmutableList<TileSchema>, initialEvents: SerializableImmutableList<EventSchema>, failureTiles: SerializableImmutableList<TileSchema>, failureEvents: SerializableImmutableList<EventSchema>, transition: ContentTransitionSchema? = null, popTransition: ContentTransitionSchema? = null, predictivePopTransition: ContentTransitionSchema? = null)

Properties

Link copied to clipboard
@SerialName(value = "failureEvents")
val failureEvents: SerializableImmutableList<EventSchema>

events run on failure.

Link copied to clipboard
@SerialName(value = "failureTiles")
val failureTiles: SerializableImmutableList<TileSchema>

tiles shown if loading fails.

Link copied to clipboard
@SerialName(value = "initialEvents")
val initialEvents: SerializableImmutableList<EventSchema>

events run while loading.

Link copied to clipboard
@SerialName(value = "initialTiles")
val initialTiles: SerializableImmutableList<TileSchema>

tiles shown while the screen's real content is loading.

Link copied to clipboard
@SerialName(value = "popTransition")
val popTransition: ContentTransitionSchema?

transition for popping back off this entry.

Link copied to clipboard
@SerialName(value = "predictivePopTransition")
val predictivePopTransition: ContentTransitionSchema?

transition for the predictive back gesture on this entry.

Link copied to clipboard
@SerialName(value = "screenId")
val screenId: String

id of the screen this entry represents.

Link copied to clipboard
@SerialName(value = "transition")
val transition: ContentTransitionSchema?

enter/exit transition for navigating to this entry.