OH_ArkUI_PointerEvent_GetHistoryPointerId

Function OH_ArkUI_PointerEvent_GetHistoryPointerId 

Source
pub unsafe extern "C" fn OH_ArkUI_PointerEvent_GetHistoryPointerId(
    event: *const ArkUI_UIInputEvent,
    pointerIndex: u32,
    historyIndex: u32,
) -> i32
Available on crate feature api-12 only.
Expand description

Obtains the unique ID of a contact point from a historical event of a pointer event (such as a touch event).

The ID distinguishes between multiple contact points from the same input device. The return value itself does not have any other meaning beyond identifying the contact point.

§Arguments

  • event - Pointer to the current UI input event.

  • pointerIndex - Index of the target contact point in the contact point list.

  • historyIndex - Index of the target historical event.

§Returns

  • Returns the ID of the corresponding touch point in the specified historical event.

Available since API-level: 12