We just launched Compose Examples featuring over 150+ components! Check it out →

excludeFromSystemGesture

Android

Modifier in Compose Foundation

Excludes the layout rectangle from the system gesture.

Last updated:

Installation

dependencies {
   implementation("androidx.compose.foundation:foundation:1.8.0-alpha04")
}

Overloads

@Deprecated("Use systemGestureExclusion", replaceWith = ReplaceWith("systemGestureExclusion"))
fun Modifier.excludeFromSystemGesture()
@Deprecated("Use systemGestureExclusion", replaceWith = ReplaceWith("systemGestureExclusion"))
fun Modifier.excludeFromSystemGesture(exclusion: (LayoutCoordinates) -> Rect)
by @alexstyl