OH_ArkUI_PointerEvent_SetInterceptHitTestMode

Function OH_ArkUI_PointerEvent_SetInterceptHitTestMode 

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

Sets the hit testing mode, that is, how the component behaves during hit testing. This API only applies to scenarios raw input events are received, such as when [NODE_ON_TOUCH] is used for touch event handling. It cannot be used with ArkUI_UIInputEvent objects obtained from gesture events through [OH_ArkUI_GestureEvent_GetRawInputEvent].

§Arguments

  • event - Pointer to the current UI input event.

  • mode - Hit testing mode, of type HitTestMode.

§Returns

  • Result code.

Available since API-level: 12