OH_ArkUI_PointerEvent_GetInteractionHandByIndex

Function OH_ArkUI_PointerEvent_GetInteractionHandByIndex 

Source
pub unsafe extern "C" fn OH_ArkUI_PointerEvent_GetInteractionHandByIndex(
    event: *const ArkUI_UIInputEvent,
    pointerIndex: i32,
    hand: *mut ArkUI_InteractionHand,
) -> i32
Available on crate features api-12 and api-15 only.
Expand description

Obtains whether the current touch event is from the left or right hand.

§Arguments

  • event - Pointer to the current UI input event.

  • pointerIndex - Index of the target touch point in the multi-touch data list.

  • hand - Whether the touch point is from the left or right hand.

§Returns

  • Returns the result code. Returns [ARKUI_ERROR_CODE_NO_ERROR] if the operation is successful. Returns [ARKUI_ERROR_CODE_PARAM_INVALID] if a parameter error occurs.

Available since API-level: 15