pub unsafe extern "C" fn OH_NativeXComponent_GetKeyEventSourceType(
    keyEvent: *mut OH_NativeXComponent_KeyEvent,
    sourceType: *mut OH_NativeXComponent_EventSourceType,
) -> i32
Available on crate feature xcomponent only.
Expand description

@brief Obtains the sourceType of the key event.

@param keyEvent Indicates the pointer to this OH_NativeXComponent_KeyEvent instance. @param sourceType Indicates the sourceType of the OH_NativeXComponent_KeyEvent instance. @return Returns the status code of the execution. @since 10 @version 1.0