Class

MutableWindowInsets

A WindowInsets whose values can change without changing the instance.

Source set: Common
public class MutableWindowInsets(initialInsets: WindowInsets = WindowInsets(0, 0, 0, 0)) :
    WindowInsets

A WindowInsets whose values can change without changing the instance. This is useful to avoid recomposition when WindowInsets can change.

Note: This API as experimental since it doesn't enforce the right consumption patterns.

Properties

insets

Source set: Common
public var insets: WindowInsets by mutableStateOf(initialInsets)

The WindowInsets that are used for left, top, right, and bottom values.

Functions

getLeft

Source set: Common
override fun getLeft(density: Density, layoutDirection: LayoutDirection): Int

getTop

Source set: Common
override fun getTop(density: Density): Int

getRight

Source set: Common
override fun getRight(density: Density, layoutDirection: LayoutDirection): Int

getBottom

Source set: Common
override fun getBottom(density: Density): Int
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: