Partager via


WindowInsets.Type.SystemGestures Method

Definition

Returns an insets type representing the system gesture insets.

[Android.Runtime.Register("systemGestures", "()I", "", ApiSince=30)]
public static int SystemGestures ();
[<Android.Runtime.Register("systemGestures", "()I", "", ApiSince=30)>]
static member SystemGestures : unit -> int

Returns

Attributes

Remarks

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 #getSystemWindowInsets() 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.

Java documentation for android.view.WindowInsets.Type.systemGestures().

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to