OH_ArkUI_PointerEvent_GetHistorySize

Function OH_ArkUI_PointerEvent_GetHistorySize 

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

Obtains the number of historical events from a pointer event (such as a touch event). Historical events are the raw events that occur between the current event and the previous event. This API is applicable only to move events.

§Arguments

  • event - Pointer to the current UI input event.

§Returns

  • Returns the number of historical events.

Available since API-level: 12