# GestureInclusion

Artifact: [androidx.wear.compose:compose-foundation](https://developer.android.com/jetpack/androidx/releases/wear-compose) [View Source](https://cs.android.com/search?q=file:androidx/wear/compose/foundation/GestureInclusion.kt+class:androidx.wear.compose.foundation.GestureInclusion) Added in [1.5.0](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.5.0)


```
interface GestureInclusion
```

<br />

*** ** * ** ***

`https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/GestureInclusion` provides fine-grained control over which gestures a component should handle, given the start offset and the layout coordinates of the component.

## Summary

| ### Public functions |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `https://developer.android.com/reference/kotlin/androidx/wear/compose/foundation/GestureInclusion#ignoreGestureStart(androidx.compose.ui.geometry.Offset,androidx.compose.ui.layout.LayoutCoordinates)(offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset, layoutCoordinates: https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutCoordinates)` Determines whether a gesture starting at the given offset will be handled by this component. |

## Public functions

### ignoreGestureStart

Added in [1.6.0-rc01](https://developer.android.com/jetpack/androidx/releases/wear-compose#1.6.0-rc01)

```
fun ignoreGestureStart(offset: Offset, layoutCoordinates: LayoutCoordinates): Boolean
```

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

| Parameters |
|---|---|
| `offset: https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Offset` | The offset of the gesture within the component's layout. |
| `layoutCoordinates: https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutCoordinates` | The layout coordinates of the component. |

| Returns |
|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html` | `true` if the gesture should be ignored by this component, `false` otherwise. |