Dela via


WindowInsets.HasStableInsets Property

Definition

Returns true if this WindowInsets has nonzero stable insets.

public bool HasStableInsets { [Android.Runtime.Register("hasStableInsets", "()Z", "")] get; }
[<get: Android.Runtime.Register("hasStableInsets", "()Z", "")>]
member this.HasStableInsets : bool

Property Value

true if any of the stable inset values are nonzero

Attributes

Remarks

Returns true if this WindowInsets has nonzero stable insets.

The stable inset represents the area of a full-screen window that <b>may</b> be partially or fully obscured by the system UI elements. This value does not change based on the visibility state of those elements; for example, if the status bar is normally shown, but temporarily hidden, the stable inset will still provide the inset associated with the status bar being shown.

This member is deprecated. Use #getInsetsIgnoringVisibility(int) with Type#systemBars() instead.

Java documentation for android.view.WindowInsets.hasStableInsets().

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