OH_ArkUI_KeyEvent_IsNumLockOn

Function OH_ArkUI_KeyEvent_IsNumLockOn 

Source
pub unsafe extern "C" fn OH_ArkUI_KeyEvent_IsNumLockOn(
    event: *const ArkUI_UIInputEvent,
    state: *mut bool,
) -> ArkUiResult
Available on crate features api-14 and api-19 only.
Expand description

Get the Num Lock state of the key event.

§Arguments

  • event - Pointer to an ArkUI_UIInputEvent object.

  • state - Return whether the Num Lock is on.

§Returns

  • Returns the result code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 19