WindowInsetsCompat

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

WindowInsetsCompat.Builder

Builder for WindowInsetsCompat.

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.

Public methods

@NonNull WindowInsetsCompat

This method is deprecated.

Consuming of different parts individually of a WindowInsetsCompat instance is deprecated, since WindowInsetsCompat contains many different insets.

@NonNull WindowInsetsCompat

This method is deprecated.

Consuming of different parts individually of a WindowInsetsCompat instance is deprecated, since WindowInsetsCompat contains many different insets.

@NonNull WindowInsetsCompat

This method is deprecated.

Consuming of different parts individually of a WindowInsetsCompat instance is deprecated, since WindowInsetsCompat contains many different insets.

@Override boolean
@Nullable DisplayCutoutCompat

Returns the display cutout if there is one.

@NonNull Insets

Returns the insets of a specific set of windows causing insets, denoted by the typeMask bit mask of Types.

@NonNull Insets

Returns the insets a specific set of windows can cause, denoted by the typeMask bit mask of Types, regardless of whether that type is currently visible or not.

@NonNull Insets

This method is deprecated.

Use getInsets with