public final class

WindowInsetsAnimationCompat.BoundsCompat

extends java.lang.Object

 java.lang.Object

↳androidx.core.view.WindowInsetsAnimationCompat.BoundsCompat

Overview

Class representing the range of an WindowInsetsAnimationCompat

Summary

Constructors
publicBoundsCompat(Insets lowerBound, Insets upperBound)

Methods
public InsetsgetLowerBound()

Queries the lower inset bound of the animation.

public InsetsgetUpperBound()

Queries the upper inset bound of the animation.

public WindowInsetsAnimationCompat.BoundsCompatinset(Insets insets)

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

public WindowInsetsAnimation.BoundstoBounds()

Creates a new instance of from this compat instance.

public static WindowInsetsAnimationCompat.BoundsCompattoBoundsCompat(WindowInsetsAnimation.Bounds bounds)

Create a new insance of WindowInsetsAnimationCompat.BoundsCompat using the provided platform .

public java.lang.StringtoString()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

Constructors

public BoundsCompat(Insets lowerBound, Insets upperBound)

Methods

public 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 Insets.NONE and the upper bound is the same as WindowInsetsCompat.getInsets(int) for the fully shown state. This is the same as WindowInsetsAnimationControllerCompat.getHiddenStateInsets() and WindowInsetsAnimationControllerCompat.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.

See also: WindowInsetsAnimationCompat.BoundsCompat.getUpperBound(), WindowInsetsAnimationControllerCompat.getHiddenStateInsets()

public Insets getUpperBound()

Queries the upper inset bound of the animation. If the animation is about showing or hiding a window that cause insets, the lower bound is Insets.NONE nd the upper bound is the same as WindowInsetsCompat.getInsets(int) for the fully shown state. This is the same as WindowInsetsAnimationControllerCompat.getHiddenStateInsets() and WindowInsetsAnimationControllerCompat.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.

See also: WindowInsetsAnimationCompat.BoundsCompat.getLowerBound(), WindowInsetsAnimationControllerCompat.getShownStateInsets()

Insets both the lower and upper bound by the specified insets. This is to be used in WindowInsetsAnimationCompat.Callback.onStart(WindowInsetsAnimationCompat, WindowInsetsAnimationCompat.BoundsCompat) to indicate that a part of the insets has been used to offset or clip its children, and the children shouldn't worry about that part anymore.

Parameters:

insets: The amount to inset.

Returns:

A copy of this instance inset in the given directions.

See also: WindowInsetsCompat.inset(Insets), WindowInsetsAnimationCompat.Callback.onStart(WindowInsetsAnimationCompat, WindowInsetsAnimationCompat.BoundsCompat)

public java.lang.String toString()

public WindowInsetsAnimation.Bounds toBounds()

Creates a new instance of from this compat instance.

public static WindowInsetsAnimationCompat.BoundsCompat toBoundsCompat(WindowInsetsAnimation.Bounds bounds)

Create a new insance of WindowInsetsAnimationCompat.BoundsCompat using the provided platform .