# Print output for @column tags ?> WindowInsetsAnimation.Bounds - Android SDK | Android Developers

Most visited

Recently visited

WindowInsetsAnimation.Bounds

public static final class WindowInsetsAnimation.Bounds
extends Object

java.lang.Object
   ↳ android.view.WindowInsetsAnimation.Bounds


Class representing the range of an WindowInsetsAnimation

Summary

Public constructors

Bounds(Insets lowerBound, Insets upperBound)

Public methods

Insets getLowerBound()

Queries the lower inset bound of the animation.

Insets getUpperBound()

Queries the upper inset bound of the animation.

WindowInsetsAnimation.Bounds inset(Insets insets)

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

String toString()

Returns a string representation of the object.

Inherited methods

Public constructors

Bounds

public Bounds (Insets lowerBound, 
                Insets upperBound)

Parameters
lowerBound Insets: This value cannot be null.

upperBound Insets: This value cannot be null.

Public methods

getLowerBound

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 WindowInsets#getInsets(int) for the fully shown state. This is the same as WindowInsetsAnimationController#getHiddenStateInsets and WindowInsetsAnimationController#getShownStateInsets in case the listener gets invoked because of an animation that originates from WindowInsetsAnimationController.

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.

Returns
Insets This value cannot be null.

See also:

getUpperBound

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 WindowInsets#getInsets(int) for the fully shown state. This is the same as WindowInsetsAnimationController#getHiddenStateInsets and WindowInsetsAnimationController#getShownStateInsets in case the listener gets invoked because of an animation that originates from WindowInsetsAnimationController.

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.

Returns
Insets This value cannot be null.

See also:

inset

public WindowInsetsAnimation.Bounds inset (Insets insets)

Insets both the lower and upper bound by the specified insets. This is to be used in Callback#onStart 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 Insets: The amount to inset. This value cannot be null.

Returns
WindowInsetsAnimation.Bounds A copy of this instance inset in the given directions. This value cannot be null.

See also:

toString

public String toString ()

Returns a string representation of the object. In general, the toString method returns a string that "textually represents" this object. The result should be a concise but informative representation that is easy for a person to read. It is recommended that all subclasses override this method.

The toString method for class Object returns a string consisting of the name of the class of which the object is an instance, the at-sign character `@', and the unsigned hexadecimal representation of the hash code of the object. In other words, this method returns a string equal to the value of:

 getClass().getName() + '@' + Integer.toHexString(hashCode())
 

Returns
String a string representation of the object.