OH_NativeXComponent_GetKeyEventTimestamp

Function OH_NativeXComponent_GetKeyEventTimestamp 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetKeyEventTimestamp(
    keyEvent: *mut OH_NativeXComponent_KeyEvent,
    timestamp: *mut i64,
) -> i32
Expand description

Obtains the timestamp of the key event.

§Arguments

  • keyEvent - Indicates the pointer to this OH_NativeXComponent_KeyEvent instance.

  • timestamp - Indicates the timestamp of the OH_NativeXComponent_KeyEvent instance.

§Returns

  • Returns the status code of the execution.

Available since API-level: 10

Version: 1.0