diff --git a/arkui/ace_engine/native/libace.ndk.json b/arkui/ace_engine/native/libace.ndk.json index b5f15e435f2c5b382402e1300d178d30e5db48c8..95c1a46751aba27476baa7d57960f5ed758bcb46 100644 --- a/arkui/ace_engine/native/libace.ndk.json +++ b/arkui/ace_engine/native/libace.ndk.json @@ -1158,5 +1158,9 @@ { "first_introduced": "12", "name": "OH_ArkUI_ListItemSwipeActionOption_SetOnOffsetChange" + }, + { + "first_introduced": "12", + "name": "OH_ArkUI_PointerEvent_SetStopPropagation" } ] \ No newline at end of file diff --git a/arkui/ace_engine/native/ui_input_event.h b/arkui/ace_engine/native/ui_input_event.h index 05890e33e26f9722d30b4f7a5801e93f2b1a7605..976467a682704a10f8b3286c0554e3a8d1336326 100644 --- a/arkui/ace_engine/native/ui_input_event.h +++ b/arkui/ace_engine/native/ui_input_event.h @@ -687,6 +687,18 @@ int32_t OH_ArkUI_MouseEvent_GetMouseButton(const ArkUI_UIInputEvent* event); */ int32_t OH_ArkUI_MouseEvent_GetMouseAction(const ArkUI_UIInputEvent* event); +/** + * @brief Sets whether to prevent event bubbling. + * + * @param event Indicates the pointer to the current UI input event. + * @param stopPropagation Indicates whether the event is prevented from bubbling. + * @return 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. + * @since 12 + */ +int32_t OH_ArkUI_PointerEvent_SetStopPropagation(const ArkUI_UIInputEvent* event, bool stopPropagation); + #ifdef __cplusplus }; #endif