OH_Input_RemoveAxisEventMonitor

Function OH_Input_RemoveAxisEventMonitor 

Source
pub unsafe extern "C" fn OH_Input_RemoveAxisEventMonitor(
    axisEventType: InputEvent_AxisEventType,
    callback: Input_AxisEventCallback,
) -> Input_Result
Available on crate feature api-12 only.
Expand description

Removes the listener for the specified type of axis events.

ohos.permission.INPUT_MONITORING

§Arguments

  • axisEventType - - Axis event type. The axis event type is defined in InputEvent_AxisEventType.

  • callback - - Callback for the listener used to listen for the specified type of axis events.

§Returns

  • OH_Input_RemoveAxisEventMonitor function result code. [INPUT_SUCCESS] Removes the listener for the specified type of axis events success.

[INPUT_PERMISSION_DENIED] Permission verification failed.

[INPUT_PARAMETER_ERROR] The callback is NULL or has not been added.

[INPUT_SERVICE_EXCEPTION] Fail to remove the monitor because the service is exception.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 12