public final class

WindowInsetsCompat.Type

extends java.lang.Object

 java.lang.Object

↳androidx.core.view.WindowInsetsCompat.Type

Overview

Class that defines different types of sources causing window insets.

Summary

Methods
public static intcaptionBar()

public static intdisplayCutout()

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

public static intime()

public static intmandatorySystemGestures()

public static intnavigationBars()

public static intstatusBars()

public static intsystemBars()

public static intsystemGestures()

Returns an insets type representing the system gesture insets.

public static inttappableElement()

from java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

Methods

public static int statusBars()

Returns:

An insets type representing any system bars for displaying status.

public static int navigationBars()

Returns:

An insets type representing any system bars for navigation.

public static int captionBar()

Returns:

An insets type representing the window of a caption bar.

public static int ime()

Returns:

An insets type representing the window of an .

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 is requested, an inset will be returned even when the system gestures are inactive due to View or View.

See also: WindowInsetsCompat.getSystemGestureInsets()

public static int mandatorySystemGestures()

See also: WindowInsetsCompat.getMandatorySystemGestureInsets()

public static int tappableElement()

See also: WindowInsetsCompat.getTappableElementInsets()

public static int displayCutout()

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

This is equivalent to the safe insets on WindowInsetsCompat.getDisplayCutout().

See also: DisplayCutoutCompat.getSafeInsetLeft(), DisplayCutoutCompat.getSafeInsetTop(), DisplayCutoutCompat.getSafeInsetRight(), DisplayCutoutCompat.getSafeInsetBottom()

public static int systemBars()

Returns:

All system bars. Includes WindowInsetsCompat.Type.statusBars(), WindowInsetsCompat.Type.captionBar() as well as WindowInsetsCompat.Type.navigationBars(), but not WindowInsetsCompat.Type.ime().