pub unsafe extern "C" fn OH_NativeXComponent_GetKeyEventDeviceId(
keyEvent: *mut OH_NativeXComponent_KeyEvent,
deviceId: *mut i64,
) -> i32Expand description
Obtains the deviceId of the key event.
§Arguments
-
keyEvent- Indicates the pointer to this OH_NativeXComponent_KeyEvent instance. -
deviceId- Indicates the deviceId of the OH_NativeXComponent_KeyEvent instance.
§Returns
- Returns the status code of the execution.
Available since API-level: 10
Version: 1.0