OH_NativeXComponent_GetKeyEventScrollLockState

Function OH_NativeXComponent_GetKeyEventScrollLockState 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetKeyEventScrollLockState(
    keyEvent: *mut OH_NativeXComponent_KeyEvent,
    isScrollLockOn: *mut bool,
) -> i32
Available on crate feature api-20 only.
Expand description

Obtains the Scroll Lock state of the key event.

§Arguments

  • keyEvent - Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.

  • isScrollLockOn - Return whether the Scroll 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