public static final class WindowInsets.Type
extends Object



Class that defines different types of sources causing window insets.

Summary

Public methods

static int captionBar()
static int displayCutout()

Returns an insets type representing the area that used by DisplayCutout.

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

From class java.lang.Object

Object clone()

Creates and returns a copy of this object.

boolean equals(Object obj)

Indicates whether some other object is "equal to" this one.

void finalize()

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.

final Class<?> getClass()

Returns the runtime class of this Object.

int hashCode()

Returns a hash code value for the object.

final void notify()

Wakes up a single thread that is waiting on this object's monitor.

final void notifyAll()

Wakes up all threads that are waiting on this object's monitor.

String toString()

Returns a string representation of the object.

final void wait(long timeoutMillis, int nanos)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait(long timeoutMillis)

Causes the current thread to wait until it is awakened, typically by being notified or interrupted, or until a certain amount of real time has elapsed.

final void wait()

Causes the current thread to wait until it is awakened, typically by being notified or interrupted.

Public methods

captionBar

public static int captionBar ()
Returns
int An insets type representing the window of a caption bar.
Value is either 0 or a combination of the following:

    ime

    public static int ime ()
    Returns
    int An insets type representing the window of an InputMethod.
    Value is either 0 or a combination of the following:

      mandatorySystemGestures

      public static int mandatorySystemGestures ()
      Returns
      int Value is either 0 or a combination of the following:
        public static int navigationBars ()
        Returns
        int An insets type representing any system bars for navigation.
        Value is either 0 or a combination of the following:

          statusBars

          public static int statusBars ()
          Returns
          int An insets type representing any system bars for displaying status.
          Value is either 0 or a combination of the following:

            systemGestures

            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.

            Returns
            int Value is either 0 or a combination of the following:

              systemOverlays

              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.

              Returns
              int An insets type representing the system overlays.
              Value is either 0 or a combination of the following:

                tappableElement

                public static int tappableElement ()
                Returns
                int Value is either 0 or a combination of the following:

                  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.