Build apps faster with our new App builder! Check it out →

preferKeepClear

Android

Modifier in Compose Foundation

Mark the layout rectangle as preferring to stay clear of floating windows.

This Modifier only has an effect on SDK 33 and above.

Last updated:

Installation

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

Overloads


fun Modifier.preferKeepClear()

fun Modifier.preferKeepClear(rectProvider: (LayoutCoordinates) -> Rect)
by @alexstyl