Function OH_Input_InjectTouchEvent

Source
pub unsafe extern "C" fn OH_Input_InjectTouchEvent(
    touchEvent: *const Input_TouchEvent,
) -> i32
Available on crate feature api-12 only.
Expand description

Inject touch event.

§Arguments

  • touchEvent - - the touch event to be injected.

§Returns

  • OH_Input_InjectTouchEvent function result code. [INPUT_SUCCESS] inject touchEvent success.

[INPUT_PARAMETER_ERROR] Parameter check failed.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12