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 |
Insets both the lower and upper bound by the specified insets. |
@NonNull WindowInsetsAnimation.Bounds |
@RequiresApi(value = 30)Creates a new instance of |
static @NonNull WindowInsetsAnimationCompat.BoundsCompat |
@RequiresApi(value = 30)Create a new insance of |
String |
toString() |
Public constructors
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.| See also | |
|---|---|
getUpperBound |
|
getHiddenStateInsets |
getUpperBound
public @NonNull 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 NONE nd 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.
| See also | |
|---|---|
getLowerBound |
|
getShownStateInsets |
inset
public @NonNull WindowInsetsAnimationCompat.BoundsCompat inset(@NonNull Insets insets)
Insets both the lower and upper bound by the specified insets. This is to be used in 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.
| Returns | |
|---|---|
@NonNull WindowInsetsAnimationCompat.BoundsCompat |
A copy of this instance inset in the given directions. |
| See also | |
|---|---|
WindowInsetsCompat |
|
onStart |
toBounds
@RequiresApi(value = 30)
public @NonNull WindowInsetsAnimation.Bounds toBounds()
Creates a new instance of WindowInsetsAnimation.Bounds from this compat instance.
toBoundsCompat
@RequiresApi(value = 30)
public static @NonNull WindowInsetsAnimationCompat.BoundsCompat toBoundsCompat(@NonNull WindowInsetsAnimation.Bounds bounds)
Create a new insance of BoundsCompat using the provided platform android.view.WindowInsetsAnimation.Bounds.