pub unsafe extern "C" fn OH_Input_AddTouchEventMonitor(
callback: Input_TouchEventCallback,
) -> Input_ResultAvailable on crate feature
api-12 only.Expand description
Add a listener for touch events.
ohos.permission.INPUT_MONITORING
§Arguments
callback- - Callback used to receive touch events.
§Returns
- OH_Input_AddTouchEventMonitor function result code.
[
INPUT_SUCCESS] Adds a listener of touch events success.
[INPUT_PERMISSION_DENIED] Permission verification failed.
[INPUT_PARAMETER_ERROR] The callback is NULL.
[INPUT_SERVICE_EXCEPTION] Failed to add the monitor because the service is exception.
Required System Capabilities: SystemCapability.MultimodalInput.Input.Core
Available since API-level: 12