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. | 
      
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. | 
      
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. | 
      
toString
public String toString ()
Returns a string representation of the object.
| Returns | |
|---|---|
String | 
        a string representation of the object. |