🌈 Create new beautiful Compose Gradients with our new wesite ->
Interface

GestureInclusion

GestureInclusion provides fine-grained control over which gestures a component should handle, given the start offset and the layout coordinates of the component.

Source set: Android
public interface GestureInclusion

GestureInclusion provides fine-grained control over which gestures a component should handle, given the start offset and the layout coordinates of the component.

Functions

ignoreGestureStart

Source set: Android
public fun ignoreGestureStart(offset: Offset, layoutCoordinates: LayoutCoordinates): Boolean

Determines whether a gesture starting at the given offset will be handled by this component.

Parameters

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

Return

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