WindowInsetsCompat

Added in 1.1.0

public class WindowInsetsCompat


Describes a set of insets for window content.

WindowInsetsCompats are immutable and may be expanded to include more inset types in the future. To adjust insets, use one of the supplied clone methods to obtain a new WindowInsetsCompat instance with the adjusted properties.

Summary

Nested types

public final class WindowInsetsCompat.Builder

Builder for WindowInsetsCompat.

public final class WindowInsetsCompat.Side

Class that defines different sides for insets.

public final class WindowInsetsCompat.Type

Class that defines different types of sources causing window insets.

Constants

static final @NonNull WindowInsetsCompat

A WindowInsetsCompat instance for which isConsumed returns true.

Public constructors

Constructs a new WindowInsetsCompat, copying all values from a source WindowInsetsCompat.

<table class="res