-
@Stable()@Deprecated(message = accompanist/insets is deprecated. For more migration information, please visit https://google.github.io/accompanist/insets/#migration , replaceWith = @ReplaceWith(imports = {androidx.compose.foundation.layout.WindowInsets}, expression = WindowInsets)) public interface WindowInsets
The main insets holder, containing instances of WindowInsets.Type which each refer to different types of system display insets.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public classWindowInsets.Companionpublic interfaceWindowInsets.TypeRepresents the values for a type of insets, and stores information about the layout insets, animating insets, and visibility of the insets.
WindowInsets.Type instances are commonly stored in a WindowInsets instance.
-
Method Summary
Modifier and Type Method Description WindowInsetscopy(WindowInsets.Type navigationBars, WindowInsets.Type statusBars, WindowInsets.Type systemGestures, WindowInsets.Type ime, WindowInsets.Type displayCutout)Returns a copy of this instance with the given values. abstract WindowInsets.TypegetNavigationBars()Inset values which match WindowInsetsCompat.Type.navigationBars abstract WindowInsets.TypegetStatusBars()Inset values which match WindowInsetsCompat.Type.statusBars abstract WindowInsets.TypegetIme()Inset values which match WindowInsetsCompat.Type.ime abstract WindowInsets.TypegetSystemGestures()Inset values which match WindowInsetsCompat.Type.systemGestures abstract WindowInsets.TypegetSystemBars()Inset values which match WindowInsetsCompat.Type.systemBars abstract WindowInsets.TypegetDisplayCutout()Inset values which match WindowInsetsCompat.Type.displayCutout -
-
Method Detail
-
copy
WindowInsets copy(WindowInsets.Type navigationBars, WindowInsets.Type statusBars, WindowInsets.Type systemGestures, WindowInsets.Type ime, WindowInsets.Type displayCutout)
Returns a copy of this instance with the given values.
-
getNavigationBars
abstract WindowInsets.Type getNavigationBars()
Inset values which match WindowInsetsCompat.Type.navigationBars
-
getStatusBars
abstract WindowInsets.Type getStatusBars()
Inset values which match WindowInsetsCompat.Type.statusBars
-
getIme
abstract WindowInsets.Type getIme()
Inset values which match WindowInsetsCompat.Type.ime
-
getSystemGestures
abstract WindowInsets.Type getSystemGestures()
Inset values which match WindowInsetsCompat.Type.systemGestures
-
getSystemBars
abstract WindowInsets.Type getSystemBars()
Inset values which match WindowInsetsCompat.Type.systemBars
-
getDisplayCutout
abstract WindowInsets.Type getDisplayCutout()
Inset values which match WindowInsetsCompat.Type.displayCutout
-
-
-
-