New Compose Multiplatform components arrived on Composables UICheck it out →

Modifier in Compose Foundation

excludeFromSystemGesture

Android

Excludes the layout rectangle from the system gesture.

Last updated:

Installation

dependencies {
   implementation("androidx.compose.foundation:foundation:1.7.0-beta04")
}

Overloads

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