OH_ArkUI_PointerEvent_GetChangedPointerId

Function OH_ArkUI_PointerEvent_GetChangedPointerId 

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

Obtains the ID of the touch pointer that triggers the current touch event.

§Arguments

  • event - Indicates the pointer to the current UI input event.

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

§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