diff --git a/arkui/window_manager/oh_window.h b/arkui/window_manager/oh_window.h index 793f9a758f6d9052c56e0b520dec501acd329e6e..dfb34d665032e4b4b5ec31493d081a6ad81c95d9 100644 --- a/arkui/window_manager/oh_window.h +++ b/arkui/window_manager/oh_window.h @@ -272,6 +272,20 @@ int32_t OH_WindowManager_GetAllWindowLayoutInfoList(int64_t displayId, */ void OH_WindowManager_ReleaseAllWindowLayoutInfoList(WindowManager_Rect* windowLayoutInfoList); +/** + * @brief app can inject a touchEvent to target window without Focus and zOrder changed, just send to ArkUI. + * + * @param windowId windowId when window is created. + * @param touchEvent multimodal touchEvent. + * @return Returns the result code. + * {@link OK} the function call is successful. + * {@link WINDOW_MANAGER_ERRORCODE_INVALID_PARAM} parameter error. + * {@link WINDOW_MANAGER_ERRORCODE_STATE_ABNORMAL} this window state is abnormal. + * {@link WINDOW_MANAGER_ERRORCODE_SYSTEM_ABNORMAL} the window manager service works abnormally. + * @since 20 + */ +int32_t OH_WindowManager_InjectTouchEvent(int32_t windowId, Input_TouchEvent* touchEvent); + #ifdef __cplusplus } #endif