Class

MutableWindowInsets

A WindowInsets whose values can change without changing the instance.

Source set: Common

Added in 1.11.0-rc01

@ExperimentalLayoutApi
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

Added in 1.11.0-rc01

var insets

The WindowInsets that are used for [left]getLeft, [top]getTop, [right]getRight, and [bottom]getBottom values.