OH_Input_GetAllSystemHotkeys

Function OH_Input_GetAllSystemHotkeys 

Source
pub unsafe extern "C" fn OH_Input_GetAllSystemHotkeys(
    hotkey: *mut *mut Input_Hotkey,
    count: *mut i32,
) -> Input_Result
Available on crate feature api-14 only.
Expand description

Obtains all hot keys supported by the system.

§Arguments

  • hotkey - Array of Input_Hotkey instances. When calling this API for the first time, you can pass NULL to obtain the array length.

  • count - Number of hot keys supported by the system.

§Returns

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

[INPUT_PARAMETER_ERROR] The hotkey or count is NULL, or the value of count does not match the number of system shortcut keys supported by the system; [INPUT_DEVICE_NOT_SUPPORTED] Capability not supported.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 14