OH_NativeXComponent_GetKeyEventCode

Function OH_NativeXComponent_GetKeyEventCode 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetKeyEventCode(
    keyEvent: *mut OH_NativeXComponent_KeyEvent,
    code: *mut OH_NativeXComponent_KeyCode,
) -> i32
Expand description

Obtains the keyCode of the key event.

§Arguments

  • keyEvent - Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.

  • code - Indicates the keyCode of the OH_NativeXComponent_KeyEvent instance.

§Returns

  • Returns the status code of the execution.

Available since API-level: 10

Version: 1.0