# systemGestureExclusion

Common/AllAndroid/JVM

## Functions summary

|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.https://developer.android.com/reference/kotlin/androidx/compose/foundation/systemGestureExclusion.modifier#(androidx.compose.ui.Modifier).systemGestureExclusion()()` Excludes the layout rectangle from the system gesture. | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.https://developer.android.com/reference/kotlin/androidx/compose/foundation/systemGestureExclusion.modifier#(androidx.compose.ui.Modifier).systemGestureExclusion(kotlin.Function1)(exclusion: (https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutCoordinates) -> https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect)` Excludes a rectangle within the local layout coordinates from the system gesture. | android |

## Functions

### Modifier.systemGestureExclusion

android Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/SystemGestureExclusion.android.kt+function:systemGestureExclusion) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.2.0)

```
fun Modifier.systemGestureExclusion(): Modifier
```

Excludes the layout rectangle from the system gesture.

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#setSystemGestureExclusionRects(java.util.List&lt;android.graphics.Rect&gt;)` |   |

### Modifier.systemGestureExclusion

android Artifact: [androidx.compose.foundation:foundation](https://developer.android.com/jetpack/androidx/releases/compose-foundation) [View Source](https://cs.android.com/search?q=file:androidx/compose/foundation/SystemGestureExclusion.android.kt+function:systemGestureExclusion) Added in [1.2.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.2.0)

```
fun Modifier.systemGestureExclusion(exclusion: (LayoutCoordinates) -> Rect): Modifier
```

Excludes a rectangle within the local layout coordinates from the system gesture. After layout, `https://developer.android.com/reference/kotlin/androidx/compose/foundation/package-summary#(androidx.compose.ui.Modifier).systemGestureExclusion(kotlin.Function1)` is called to determine the `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Rect` to exclude from the system gesture area.

The `https://developer.android.com/reference/kotlin/androidx/compose/ui/layout/LayoutCoordinates` of the `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier`'s location in the layout is passed as passed as `https://developer.android.com/reference/kotlin/androidx/compose/foundation/package-summary#(androidx.compose.ui.Modifier).systemGestureExclusion(kotlin.Function1)`'s parameter.

| See also |
|---|---|
| `https://developer.android.com/reference/android/view/View.html#setSystemGestureExclusionRects(java.util.List&lt;android.graphics.Rect&gt;)` |   |