OH_NativeXComponent_GetTouchEventSourceType

Function OH_NativeXComponent_GetTouchEventSourceType 

Source
pub unsafe extern "C" fn OH_NativeXComponent_GetTouchEventSourceType(
    component: *mut OH_NativeXComponent,
    pointId: i32,
    sourceType: *mut OH_NativeXComponent_EventSourceType,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains the touch event’s source type dispatched by the ArkUI XComponent.

§Arguments

  • component - Indicates the pointer to this OH_NativeXComponent instance.

  • pointId - Indicates the id of the touch point which triggers this touch event.

  • sourceType - Indicates the source type of this touch event.

§Returns

  • Returns OH_NATIVEXCOMPONENT_RESULT_SUCCESS if success. Returns OH_NATIVEXCOMPONENT_RESULT_BAD_PARAMETER if a parameter exception occurs. Returns OH_NATIVEXCOMPONENT_RESULT_FAILED if other exceptions occur.

Available since API-level: 12

Version: 1.0