pub unsafe extern "C" fn OH_NativeXComponent_GetKeyEventNumLockState(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
isNumLockOn: *mut bool,
) -> i32Available on crate feature
api-20 only.Expand description
Obtains the Num Lock state of the key event.
§Arguments
-
keyEvent- Indicates the pointer to this OH_NativeXComponent_KeyEvent instance. -
isNumLockOn- 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: 20
Version: 1.0