OH_NativeXComponent_GetKeyEventAction

Function OH_NativeXComponent_GetKeyEventAction 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetKeyEventAction(
    keyEvent: *mut OH_NativeXComponent_KeyEvent,
    action: *mut OH_NativeXComponent_KeyAction,
) -> i32
Expand description

Obtains the action of the key event.

§Arguments

  • keyEvent - Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.

  • action - Indicates the action of the OH_NativeXComponent_KeyEvent instance.

§Returns

  • Returns the status code of the execution.

Available since API-level: 10

Version: 1.0