pub unsafe extern "C" fn OH_ArkUI_AxisEvent_SetPropagation(
event: *const ArkUI_UIInputEvent,
propagation: bool,
) -> i32Available on crate features
api-12 and api-17 only.Expand description
Sets whether to enable axis event propagation (bubbling). By default, axis events do not bubble and are only sent to the first component that can respond to axis events. You can enable axis event bubbling to allow the current event to be passed to the next ancestor component in the response chain that can handle axis events. This API cannot be used on axis events obtained from gesture events.
§Arguments
-
event- Pointer to the UI input event. -
propagation- Whether to enable event propagation.
§Returns
- Result code.
[
ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.
Available since API-level: 17