OH_Input_CreateAllSystemHotkeys

Function OH_Input_CreateAllSystemHotkeys 

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

Creates an array of Input_Hotkey instances.

§Arguments

  • count - Number of Input_Hotkey instances to be created. The count must be the same as the number of system shortcut keys.

§Returns

  • Returns a pointer to an array of Input_Hotkey instances if the operation is successful. If the operation fails, a null pointer is returned. The possible cause is memory allocation failure or count is not equal to the number of system hotkeys.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 14