public
static
final
class
WindowInsets.Type
extends Object
| java.lang.Object | |
| ↳ | android.view.WindowInsets.Type |
Class that defines different types of sources causing window insets.
Public methods | |
|---|---|
static
int
|
captionBar()
|
static
int
|
displayCutout()
Returns an insets type representing the area that used by |
static
int
|
ime()
|
static
int
|
mandatorySystemGestures()
|
static
int
|
navigationBars()
|
static
int
|
statusBars()
|
static
int
|
systemBars()
|
static
int
|
systemGestures()
Returns an insets type representing the system gesture insets. |
static
int
|
systemOverlays()
System overlays represent the insets caused by the system visible elements. |
static
int
|
tappableElement()
|
Inherited methods | |
|---|---|
public static int captionBar ()
int0 or a combination of the following:
public static int displayCutout ()
Returns an insets type representing the area that used by DisplayCutout.
This is equivalent to the safe insets on WindowInsets.getDisplayCutout().
Note: During dispatch to View.onApplyWindowInsets, if the window is using
the default
WindowManager.LayoutParams.layoutInDisplayCutoutMode, WindowInsets.getDisplayCutout()
will return null even if the window overlaps a display cutout area, in which case
the displayCutout() inset will still report the accurate value.
int0 or a combination of the following:
See also:
public static int ime ()
intInputMethod.
0 or a combination of the following:
public static int mandatorySystemGestures ()
int0 or a combination of the following:
public static int navigationBars ()
int0 or a combination of the following:
public static int statusBars ()
int0 or a combination of the following:
public static int systemBars ()
intstatusBars(), captionBar() as well as
navigationBars(), systemOverlays(), but not ime().
0 or a combination of the following:
public static int systemGestures ()
Returns an insets type representing the system gesture insets.
The system gesture insets represent the area of a window where system gestures have priority and may consume some or all touch input, e.g. due to the a system bar occupying it, or it being reserved for touch-only gestures.
Simple taps are guaranteed to reach the window even within the system gesture insets,
as long as they are outside the system window insets.
When View.SYSTEM_UI_FLAG_LAYOUT_STABLE is requested, an inset will be returned
even when the system gestures are inactive due to
View.SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or
View.SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION.
int0 or a combination of the following:
See also:
public static int systemOverlays ()
System overlays represent the insets caused by the system visible elements. Unlike
navigationBars() or statusBars(), system overlays might not be
hidden by the client.
For compatibility reasons, this type is included in systemBars(). In this
way, views which fit systemBars() fit systemOverlays().
Examples include climate controls, multi-tasking affordances, etc.
int0 or a combination of the following:
public static int tappableElement ()
int0 or a combination of the following:
See also:
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2026-02-13 UTC.