pub enum ArkEventPayload {
Show 13 variants
None,
Bool(bool),
Float(f32),
Int(i32),
AccessibilityAction(u32),
String(String),
ScrollIndex(ScrollIndexPayload),
ScrollOffset(ScrollOffsetPayload),
Layout(LayoutPayload),
Pointer(PointerPayload),
Key(KeyPayload),
Mouse(MousePayload),
Axis(AxisPayload),
}Expand description
Typed payload carried by an ArkEventData.
Variants mirror the value shapes the ArkUI native event API exposes
(i32_value, f32_value, string_value, …). The renderer populates this
when it registers a native event callback; the typed *Data structs read
from it in their From<&ArkEventData> impls.
Variants§
None
No payload (click, refresh, submit-fire, etc.).
Bool(bool)
A boolean value (checkbox/toggle/radio checked state).
Float(f32)
A single float (slider value, refresh offset).
Int(i32)
A single integer (swiper index, submit return code).
AccessibilityAction(u32)
An ArkUI accessibility action bit (click, long click, cut,
copy, or paste).
String(String)
A string value (text input/area change).
ScrollIndex(ScrollIndexPayload)
A scroll-index payload (list/grid/water-flow visible range).
ScrollOffset(ScrollOffsetPayload)
A physical scroll offset payload (generic Scroll and scroll observers).
Layout(LayoutPayload)
Layout frame payload for element-bound area/layout change events.
Pointer(PointerPayload)
Pointer payload for input events such as click, touch, and hover move.
Key(KeyPayload)
Physical keyboard input delivered to the focused node.
Mouse(MousePayload)
Raw mouse input delivered to a desktop-capable node.