OH_Input_RemoveHotkeyMonitor

Function OH_Input_RemoveHotkeyMonitor 

Source
pub unsafe extern "C" fn OH_Input_RemoveHotkeyMonitor(
    hotkey: *const Input_Hotkey,
    callback: Input_HotkeyCallback,
) -> Input_Result
Available on crate feature api-14 only.
Expand description

Unsubscribes from shortcut key events.

§Arguments

  • hotkey - Shortcut key object.

  • callback - Callback used to return shortcut key events.

§Returns

  • OH_Input_RemoveHotkeyMonitor status code, specifically, [INPUT_SUCCESS] if the operation is successful;

[INPUT_PARAMETER_ERROR] if hotkey or callback is NULL;

[INPUT_DEVICE_NOT_SUPPORTED] Capability not supported.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 14