Function OH_Input_GetRepeat

Source
pub unsafe extern "C" fn OH_Input_GetRepeat(
    hotkey: *const Input_Hotkey,
    isRepeat: *mut bool,
) -> Input_Result
Available on crate features api-12 and api-14 only.
Expand description

Checks whether to report repeated key events.

§Arguments

  • hotkey - Shortcut key object.

  • isRepeat - Whether a key event is repeated.

§Returns

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

[INPUT_PARAMETER_ERROR] otherwise;

[INPUT_DEVICE_NOT_SUPPORTED] Capability not supported.

Required System Capabilities: SystemCapability.MultimodalInput.Input.Core

Available since API-level: 14