Google is committed to advancing racial equity for Black communities. See how.

Type

class Type
kotlin.Any
   ↳ androidx.core.view.WindowInsetsCompat.Type

Class that defines different types of sources causing window insets.

Summary

Public methods
static Int

static Int

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

static Int
ime()

static Int

static Int

static Int

static Int

static Int

Returns an insets type representing the system gesture insets.

static Int

Public methods

captionBar

static fun captionBar(): Int
Return
Int An insets type representing the window of a caption bar.

displayCutout

static fun displayCutout(): Int

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

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

ime

static fun ime(): Int
Return
Int An insets type representing the window of an InputMethod.

mandatorySystemGestures

static fun mandatorySystemGestures(): Int
static fun navigationBars(): Int
Return
Int An insets type representing any system bars for navigation.

statusBars

static fun statusBars(): Int
Return
Int An insets type representing any system bars for displaying status.

systemBars

static fun systemBars(): Int
Return
Int All system bars. Includes statusBars(), captionBar() as well as navigationBars(), but not ime().

systemGestures

static fun systemGestures(): Int

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.

tappableElement

static fun tappableElement(): Int