MilanoUserInteraction

data class MilanoUserInteraction(val kind: MilanoUserInteraction.Kind, val viewIdentity: String, val node: String? = null, val name: String? = null, val value: MilanoValue? = null, val dispatch: Int? = null)

One user interaction, delivered to the engine's user-interaction observer. Records pass everything through unredacted (payloads, action parameters, document metadata): Milano implements no tracker, the receiving host owns the data and decides what to do with it.

Constructors

Link copied to clipboard
constructor(kind: MilanoUserInteraction.Kind, viewIdentity: String, node: String? = null, name: String? = null, value: MilanoValue? = null, dispatch: Int? = null)

Types

Link copied to clipboard

The closed union of both sources: runtime-captured records (lifecycle, emissions, dispatch, completions) and renderer-reported widget interactions (MilanoNode.userInteraction).

Properties

Link copied to clipboard
val dispatch: Int? = null

The dispatch number, when the record is about a custom action dispatch (Kind.ACTION_DISPATCHED, Kind.COMPLETION_SUCCEEDED, Kind.COMPLETION_FAILED): the same number the action carried.

Link copied to clipboard
Link copied to clipboard
val name: String? = null

The event or action name, when one applies.

Link copied to clipboard
val node: String? = null

The node's id or canonical path, when anchored to a node.

Link copied to clipboard
val value: MilanoValue? = null

The interaction's data: the emission payload for Kind.EVENT, the captured parameters for Kind.ACTION_DISPATCHED, the validated result or failure payload for a completion, the document metadata for Kind.VIEW_BUILT and Kind.VIEW_REPLACED, and whatever the renderer supplies for widget kinds.

Link copied to clipboard

Stable identity of the originating view, plus the builder's label when set.