# excludeFromSystemGesture

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.[excludeFromSystemGesture](https://developer.android.com/reference/kotlin/androidx/compose/foundation/excludeFromSystemGesture.modifier#(androidx.compose.ui.Modifier).excludeFromSystemGesture())()` **This function is deprecated.** Use systemGestureExclusion | android |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/Modifier.[excludeFromSystemGesture](https://developer.android.com/reference/kotlin/androidx/compose/foundation/excludeFromSystemGesture.modifier#(androidx.compose.ui.Modifier).excludeFromSystemGesture(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 )` **This function is deprecated.** Use systemGestureExclusion | android |

## Functions

### Modifier.excludeFromSystemGesture

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/ExcludeFromSystemGesture.android.kt+function:excludeFromSystemGesture) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.6.0) Deprecated in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.6.0)

```
fun Modifier.[excludeFromSystemGesture](https://developer.android.com/reference/kotlin/androidx/compose/foundation/excludeFromSystemGesture.modifier#(androidx.compose.ui.Modifier).excludeFromSystemGesture())(): Modifier
```

> [!CAUTION]
> **This function is deprecated.**   
> Use systemGestureExclusion, use this instead:
>
> ```kotlin
> systemGestureExclusion
> ```

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.excludeFromSystemGesture

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/ExcludeFromSystemGesture.android.kt+function:excludeFromSystemGesture) Added in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.6.0) Deprecated in [1.6.0](https://developer.android.com/jetpack/androidx/releases/compose-foundation#1.6.0)

```
fun Modifier.[excludeFromSystemGesture](https://developer.android.com/reference/kotlin/androidx/compose/foundation/excludeFromSystemGesture.modifier#(androidx.compose.ui.Modifier).excludeFromSystemGesture(kotlin.Function1))(
    exclusion: (LayoutCoordinates) -> Rect
): Modifier
```

> [!CAUTION]
> **This function is deprecated.**   
> Use systemGestureExclusion, use this instead:
>
> ```kotlin
> systemGestureExclusion
> ```

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).excludeFromSystemGesture(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).excludeFromSystemGesture(kotlin.Function1)`'s parameter.

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