belongs to Maven artifact com.android.support:support-compat:28.0.0-alpha1
WindowInsetsCompat
public
class
WindowInsetsCompat
extends Object
java.lang.Object | |
↳ | android.support.v4.view.WindowInsetsCompat |
Describes a set of insets for window content.
WindowInsetsCompats are immutable and may be expanded to include more inset types in the future. To adjust insets, use one of the supplied clone methods to obtain a new WindowInsetsCompat instance with the adjusted properties.
Summary
Public constructors | |
---|---|
WindowInsetsCompat(WindowInsetsCompat src)
Constructs a new WindowInsetsCompat, copying all values from a source WindowInsetsCompat. |
Public methods | |
---|---|
WindowInsetsCompat
|
consumeStableInsets()
Returns a copy of this WindowInsets with the stable insets fully consumed. |
WindowInsetsCompat
|
consumeSystemWindowInsets()
Returns a copy of this WindowInsets with the system window insets fully consumed. |
boolean
|
equals(Object o)
|
int
|
getStableInsetBottom()
Returns the bottom stable inset in pixels. |
int
|
getStableInsetLeft()
Returns the left stable inset in pixels. |
int
|
getStableInsetRight()
Returns the right stable inset in pixels. |
int
|
getStableInsetTop()
Returns the top stable inset in pixels. |
int
|
getSystemWindowInsetBottom()
Returns the bottom system window inset in pixels. |
int
|
getSystemWindowInsetLeft()
Returns the left system window inset in pixels. |
int
|
getSystemWindowInsetRight()
Returns the right system window inset in pixels. |
int
|
getSystemWindowInsetTop()
Returns the top system window inset in pixels. |
boolean
|
hasInsets()
Returns true if this WindowInsets has any nonzero insets. |
boolean
|
hasStableInsets()
Returns true if this WindowInsets has nonzero stable insets. |
boolean
|
hasSystemWindowInsets()
Returns true if this WindowInsets has nonzero system window insets. |
int
|
hashCode()
|
boolean
|
isConsumed()
Check if these insets have been fully consumed. |
boolean
|
isRound()
Returns true if the associated window has a round shape. |
WindowInsetsCompat
|
replaceSystemWindowInsets(int left, int top, int right, int bottom)
Returns a copy of this WindowInsets with selected system window insets replaced with new values. |
WindowInsetsCompat
|
replaceSystemWindowInsets(Rect systemWindowInsets)
Returns a copy of this WindowInsets with selected system window insets replaced with new values. |
Inherited methods | |
---|---|
![]()
java.lang.Object
|