Compose Modifier

excludeFromSystemGesture

Excludes the layout rectangle from the system gesture.

excludeFromSystemGesture

Source set: Android
@Deprecated("Use systemGestureExclusion", replaceWith = ReplaceWith("systemGestureExclusion"))
public fun Modifier.excludeFromSystemGesture(): Modifier

Excludes the layout rectangle from the system gesture.

excludeFromSystemGesture

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

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.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: