<div class='type'>Compose Modifier</div>

<a id='references'></a>
<div class='sourceset sourceset-android'>Android</div>


> **Deprecated** Use systemGestureExclusion



<h2 id="excludefromsystemgesture">excludeFromSystemGesture</h2>

```kotlin
fun Modifier.excludeFromSystemGesture() = systemGestureExclusion()
```


Excludes the layout rectangle from the system gesture.



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


> **Deprecated** Use systemGestureExclusion



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


<h2 id="excludefromsystemgesture-exclusion">excludeFromSystemGesture</h2>

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


Excludes a rectangle within the local layout coordinates from the system gesture. After layout,
`exclusion` is called to determine the `Rect` to exclude from the system gesture area.

The `LayoutCoordinates` of the `Modifier`'s location in the layout is passed as passed as
`exclusion`'s parameter.