Skip to main content

OH_ArkUI_CoastingAxisEvent_SetPropagation

Function OH_ArkUI_CoastingAxisEvent_SetPropagation 

Source
pub unsafe extern "C" fn OH_ArkUI_CoastingAxisEvent_SetPropagation(
    event: *mut ArkUI_CoastingAxisEvent,
    propagation: bool,
) -> i32
Available on crate features api-12 and api-22 only.
Expand description

Sets whether to enable coasting axis event propagation.

§Arguments

  • event - Pointer to the coasting axis event.

  • propagation - Whether to enable event propagation.

§Returns

  • Returns the result code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 22