WindowInsetsCompat.Type
class WindowInsetsCompat.Type
Class that defines different types of sources causing window insets.
Summary
Public functions |
|
|---|---|
java-static Int |
|
java-static Int |
Returns an insets type representing the area that used by |
java-static Int |
ime() |
java-static Int |
|
java-static Int |
|
java-static Int |
|
java-static Int |
|
java-static Int |
Returns an insets type representing the system gesture insets. |
java-static Int |
System overlays represent the insets caused by the system visible elements. |
java-static Int |
Public functions
captionBar
java-static fun captionBar(): Int
| Returns | |
|---|---|
Int |
An insets type representing the window of a caption bar. |
displayCutout
java-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
java-static fun ime(): Int
| Returns | |
|---|---|
Int |
An insets type representing the window of an |
mandatorySystemGestures
java-static fun mandatorySystemGestures(): Int
| See also | |
|---|---|
getMandatorySystemGestureInsets |
navigationBars
java-static fun navigationBars(): Int
| Returns | |
|---|---|
Int |
An insets type representing any system bars for navigation. |
statusBars
java-static fun statusBars(): Int
| Returns | |
|---|---|
Int |
An insets type representing any system bars for displaying status. |
systemBars
java-static fun systemBars(): Int
| Returns | |
|---|---|
Int |
All system bars. Includes |
systemGestures
java-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 SYSTEM_UI_FLAG_LAYOUT_STABLE is requested, an inset will be returned even when the system gestures are inactive due to SYSTEM_UI_FLAG_LAYOUT_FULLSCREEN or SYSTEM_UI_FLAG_LAYOUT_HIDE_NAVIGATION.
| See also | |
|---|---|
getSystemGestureInsets |
systemOverlays
java-static fun systemOverlays(): Int
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. |
tappableElement
java-static fun tappableElement(): Int
| See also | |
|---|---|
getTappableElementInsets |