pub unsafe extern "C" fn OH_ArkUI_PointerEvent_SetStopPropagation(
event: *const ArkUI_UIInputEvent,
stopPropagation: bool,
) -> i32Available on crate feature
api-12 only.Expand description
Sets whether to stop event propagation. This API only applies to scenarios raw input events are received,
such as when [NODE_ON_TOUCH] is used for touch event handling.
It cannot be used with ArkUI_UIInputEvent objects obtained from gesture events
through [OH_ArkUI_GestureEvent_GetRawInputEvent].
§Arguments
-
event- Pointer to the current UI input event. -
stopPropagation- Whether to stop event propagation.
§Returns
- Returns the status code of the execution. If 0 is returned, the setting is successful. If 401 is returned, the execution fails. The possible cause of the failure is that the event parameter is abnormal, such as a null pointer.
Available since API-level: 12