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