WindowInsetsCompat

public class WindowInsetsCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.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 classes

class WindowInsetsCompat.Builder

Builder for WindowInsetsCompat

class WindowInsetsCompat.Type

Class that defines different types of sources causing window insets. 

Fields

public static final WindowInsetsCompat CONSUMED

A WindowInsetsCompat instance for which isConsumed() returns true.

Public constructors

WindowInsetsCompat(WindowInsetsCompat src)

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

Public methods

WindowInsetsCompat consumeDisplayCutout()

This method is deprecated. Consuming of different parts individually of a WindowInsetsCompat instance is deprecated, since WindowInsetsCompat contains many different insets. Use CONSUMED instead to stop dispatching insets.

WindowInsetsCompat consumeStableInsets()

This method is deprecated. Consuming of different parts individually of a WindowInsetsCompat instance is deprecated, since WindowInsetsCompat contains many different insets. Use CONSUMED instead to stop dispatching insets.

WindowInsetsCompat consumeSystemWindowInsets()

This method is deprecated. Consuming of different parts individually of a WindowInsetsCompat instance is deprecated, since WindowInsetsCompat contains many different insets. Use CONSUMED instead to stop dispatching insets.

boolean equals(Object o)
DisplayCutoutCompat getDisplayCutout()

Returns the display cutout if there is one.