ScrollRowTileEventSchema

@Serializable
@SerialName(value = "ScrollRow")
data class ScrollRowTileEventSchema(val id: String, val trigger: EventTrigger, val events: SerializableImmutableList<EventSchema>?, val tileId: String, val where: ScrollRowTileEventSchema.Where, val smoothly: Boolean) : EventSchema

Scrolls the Row or LazyRow tile identified by tileId, by broadcasting a scroll command on the screen channel. smoothly chooses between an animated and an immediate jump.

Where selects the target: Start, End, or To with an explicit position — which the receiving tile reads as a pixel offset in a Row and as a child index in a LazyRow.

incomingData consumed: not used.

Triggers fired:

  • OnSuccessEventTrigger — always, right after the command was broadcast. The broadcast is fire-and-forget, so this fires even when no tile carries tileId. No data is passed downstream.

Constructors

Link copied to clipboard
constructor(id: String, trigger: EventTrigger, events: SerializableImmutableList<EventSchema>?, tileId: String, where: ScrollRowTileEventSchema.Where, smoothly: Boolean)

Types

Link copied to clipboard
@Serializable
sealed interface Where

Properties

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 = "smoothly")
val smoothly: Boolean
Link copied to clipboard
@SerialName(value = "tileId")
val tileId: String
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.

Link copied to clipboard
@SerialName(value = "where")
val where: ScrollRowTileEventSchema.Where