interface GestureInclusion


Defines an area of the UI component where gestures that start within this area will be consumed by the component itself, preventing other components or the platform from consuming the gesture.

This should be used to define areas where the component should explicitly handle gestures, overriding any potential platform or other component behavior.

Summary

Public functions

Boolean
allowGesture(offset: Offset, layoutCoordinates: LayoutCoordinates)

Determines whether a gesture starting at the given offset should be consumed by this component.

Public functions

allowGesture

fun allowGesture(offset: Offset, layoutCoordinates: LayoutCoordinates): Boolean

Determines whether a gesture starting at the given offset should be consumed by this component.

Parameters
offset: Offset

The offset of the gesture within the component's layout.

layoutCoordinates: LayoutCoordinates

The layout coordinates of the component.

Returns
Boolean

true if the gesture should be consumed by this component, false otherwise.