OH_ArkUI_PointerEvent_GetPressedTimeByIndex

Function OH_ArkUI_PointerEvent_GetPressedTimeByIndex 

Source
pub unsafe extern "C" fn OH_ArkUI_PointerEvent_GetPressedTimeByIndex(
    event: *const ArkUI_UIInputEvent,
    pointerIndex: u32,
) -> i64
Available on crate features api-12 and api-15 only.
Expand description

Obtains the press time of a specified touch point. This API is effective only for touch events.

§Arguments

  • event - Pointer to an ArkUI_UIInputEvent object.

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

§Returns

  • Returns the press time of the specific touch point; returns 0 if any parameter error occurs.

Available since API-level: 15