Skip to main content

OH_Input_RemoveKeyEventMonitor

Function OH_Input_RemoveKeyEventMonitor 

Source
pub unsafe extern "C" fn OH_Input_RemoveKeyEventMonitor(
    callback: Input_KeyEventCallback,
) -> Input_Result
Expand description

@brief Removes the listener for key events.

@permission ohos.permission.INPUT_MONITORING @param callback Callback for key events. @return {@link INPUT_SUCCESS} if the operation is successful;
{@link INPUT_PERMISSION_DENIED} if permission verification fails;
{@link INPUT_PARAMETER_ERROR} if the callback is empty or no listener is added;
{@link INPUT_SERVICE_EXCEPTION} if the service is abnormal. @syscap SystemCapability.MultimodalInput.Input.Core @since 12