WindowInsetsAnimationCompat.BoundsCompat

public final class WindowInsetsAnimationCompat.BoundsCompat


Class representing the range of an WindowInsetsAnimationCompat

Summary

Public constructors

BoundsCompat(@NonNull Insets lowerBound, @NonNull Insets upperBound)

Public methods

@NonNull Insets

Queries the lower inset bound of the animation.

@NonNull Insets

Queries the upper inset bound of the animation.

@NonNull WindowInsetsAnimationCompat.BoundsCompat
inset(@NonNull Insets insets)

Insets both the lower and upper bound by the specified insets.

@RequiresApi(value = 30) @NonNull WindowInsetsAnimation.Bounds

Creates a new instance of WindowInsetsAnimation.Bounds from this compat instance.

static @RequiresApi(value = 30) @NonNull WindowInsetsAnimationCompat.BoundsCompat

Create a new insance of BoundsCompat using the provided platform android.view.WindowInsetsAnimation.Bounds.

@Override String

Public constructors

BoundsCompat

public BoundsCompat(@NonNull Insets lowerBound, @NonNull Insets upperBound)

Public methods

getLowerBound

public @NonNull Insets getLowerBound()

Queries the lower inset bound of the animation. If the animation is about showing or hiding a window that cause insets, the lower bound is NONE and the upper bound is the same as getInsets for the fully shown state. This is the same as getHiddenStateInsets and getShownStateInsets in case the listener gets invoked because of an animation that originates from WindowInsetsAnimationControllerCompat.

However, if the size of a window that causes insets is changing, these are the lower/upper bounds of that size animation.

There are no overlapping animations for a specific type, but there may be multiple animations running at the same time for different inset types.

getUpperBound