OH_ArkUI_PointerEvent_SetClonedEventChangedFingerId

Function OH_ArkUI_PointerEvent_SetClonedEventChangedFingerId 

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

Sets the touch point ID of a cloned pointer event.

§Arguments

  • event - Pointer to an ArkUI_UIInputEvent object.

  • fingerId - ID of the touch point that triggers the event.

§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. Returns [ARKUI_ERROR_CODE_NON_CLONED_POINTER_EVENT] if the input event pointer is not a cloned event pointer.

Available since API-level: 15