OH_NativeXComponent_GetKeyEvent

Function OH_NativeXComponent_GetKeyEvent 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetKeyEvent(
    component: *mut OH_NativeXComponent,
    keyEvent: *mut *mut OH_NativeXComponent_KeyEvent,
) -> i32
Expand description

Obtains the key event dispatched by the ArkUI XComponent.

§Arguments

  • component - Indicates the pointer to this OH_NativeXComponent instance.

  • keyEvent - Indicates the pointer to pointer of OH_NativeXComponent_KeyEvent instance.

§Returns

  • Returns the status code of the execution.

Available since API-level: 10

Version: 1.0