Expand description
Shared event payload types bridging ArkUI native events into dioxus.
When an ArkUI event fires, the renderer wraps the payload in an
ArkEventData and forwards it to Runtime::handle_event. The listener
installed by impl_event! downcasts the Rc<dyn Any> back to
ArkEventData and converts it into the specific event data type
(e.g. ClickData, ChangeData).
§Payload carrying
Each typed data type (ChangeData, ScrollData, …) reads fields from
ArkEventData::payload. Native payloads are populated at the ArkUI event
boundary; None remains the explicit representation for payload-free
events such as refresh and submit-fire.
Structs§
- Accessibility
Action Data - Action requested by an accessibility service.
- Area
Data - Data for an element-bound area/layout change event.
- ArkEvent
Data - Platform event payload carrying an ArkUI native event.
- Axis
Data - Axis
Payload - Change
Data - Data for a value-change event (checkbox/toggle/radio/slider/text input).
- Click
Data - Data for a click/press event.
- Focus
Data - Data for native focus and blur events.
- Hover
Data - Data for a hover event.
is_hoveringis true on pointer enter, false on exit. - KeyData
- Data for a physical keyboard event.
- KeyModifiers
- Modifier snapshot attached to a physical key event.
- KeyPayload
- Raw and normalized keyboard values captured during the native callback.
- Keyboard
Capture - Declarative native key ownership. Unclaimed keys retain platform behavior.
- Layout
Payload - Element layout frame in physical pixels, relative to the window.
- Mouse
Payload - Raw mouse values captured during the native callback.
- Pointer
Data - Data for a touch or pointer movement event. Drag lifecycle events currently
carry
Nonebecause ArkUI exposesArkUI_DragEventrather than an input event; useNodeBuilder’s raw drag callbacks when the native object is required. - Pointer
Payload - Pointer coordinates and target bounds carried by ArkUI input events.
- Reach
EndData - Data for a scroll-container reach-end event. No payload.
- Refresh
Data - Data for a refresh event (refresh trigger). No payload.
- Scroll
Data - Data for a scroll event (list/grid/water-flow/scroll).
- Scroll
Index Payload - Scroll-index payload shared by list/grid/water-flow
on_scrollevents. - Scroll
Offset Payload - Submit
Data - Data for a submit event (text input/area enter key). Carries the optional return code ArkUI passes to the submit callback.
- Swiper
Change Data - Data for a swiper change event. Carries the newly selected index.
Enums§
- ArkEvent
Kind - Semantic identity of an ArkUI event listener.
- ArkEvent
Payload - Typed payload carried by an
ArkEventData. - KeyAction
- Native key lifecycle normalized across OpenHarmony keyboard sources.
- Keyboard
Key - Platform-neutral key identity used by desktop-capable components.
- Keyboard
Navigation - Directional-key policy for lists, tabs, and calendar grids.
- Mouse
Button - Platform-neutral mouse button identity.
- Pointer
Action - Platform-neutral pointer phase used by touch-capable components.
- Pointer
Source
Functions§
- classify_
event_ name - Classify an RSX listener name passed by Dioxus to a renderer.
- keyboard_
navigation_ target
Type Aliases§
- Mouse
Data - Data for a native mouse event.