OH_ArkUI_PointerEvent_GetTouchAreaHeight

Function OH_ArkUI_PointerEvent_GetTouchAreaHeight 

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

Obtains the height of the contact area for a pointer event. This API is applicable only to finger-based touch events, and the return value typically represents the radius of a circular touch area.

§Arguments

  • event - Pointer to the current UI input event.

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

§Returns

  • Returns the height of the touch area.

Available since API-level: 12