New Compose Multiplatform components arrived on Composables UICheck it out →

Modifier in Compose Foundation

preferKeepClear

Android

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.7.0-beta04")
}

Overloads


fun Modifier.preferKeepClear()

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