<h2 id="systemgestureexclusion">systemGestureExclusion</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
fun Modifier.systemGestureExclusion() =
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
        this
    } else {
        this then excludeFromSystemGestureQ(null)
    }
```

Excludes the layout rectangle from the system gesture.

<hr class="docs-overload-divider">

<h2 id="systemgestureexclusion-exclusion">systemGestureExclusion</h2>

<div class='sourceset sourceset-android'>Android</div>

```kotlin
fun Modifier.systemGestureExclusion(exclusion: (LayoutCoordinates) -> Rect) =
    if (Build.VERSION.SDK_INT < Build.VERSION_CODES.Q) {
        this
    } else {
        this then excludeFromSystemGestureQ(exclusion)
    }
```

Excludes a rectangle within the local layout coordinates from the system gesture. After layout,
`exclusion` is called to determine the [Rect](/jetpack-compose/androidx.compose.ui/ui-geometry/classes/Rect) to exclude from the system gesture area.

The [LayoutCoordinates](/jetpack-compose/androidx.compose.ui/ui/interfaces/LayoutCoordinates) of the [Modifier](/jetpack-compose/androidx.compose.ui/ui/interfaces/Modifier)'s location in the layout is passed as passed as
`exclusion`'s parameter.