Android Guides | Samples

Android.Views.WindowInsets Class

Describes a set of insets for window content.

See Also: WindowInsets

Syntax

[Android.Runtime.Register("android/view/WindowInsets", DoNotGenerateAcw=true)]
public sealed class WindowInsets : Object

Remarks

Describes a set of insets for window content.

WindowInsets are immutable and may be expanded to include more inset types in the future. To adjust insets, use one of the supplied clone methods to obtain a new WindowInsets instance with the adjusted properties.

See Also

[Android Documentation]

Requirements

Namespace: Android.Views
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0

The members of Android.Views.WindowInsets are listed below.

See Also: Object

Public Constructors

Construct a new WindowInsets, copying all values from a source WindowInsets.

Public Properties

[read-only]
HasInsetsBoolean. Returns true if this WindowInsets has any nonzero insets.
[read-only]
HasStableInsetsBoolean. Returns true if this WindowInsets has nonzero stable insets.
[read-only]
HasSystemWindowInsetsBoolean. Returns true if this WindowInsets has nonzero system window insets.
[read-only]
IsConsumedBoolean. Check if these insets have been fully consumed.
[read-only]
IsRoundBoolean. Returns true if the associated window has a round shape.
[read-only]
StableInsetBottomInt32. Returns the bottom stable inset in pixels.
[read-only]
StableInsetLeftInt32. Returns the left stable inset in pixels.
[read-only]
StableInsetRightInt32. Returns the right stable inset in pixels.
[read-only]
StableInsetTopInt32. Returns the top stable inset in pixels.
[read-only]
SystemWindowInsetBottomInt32. Returns the bottom system window inset in pixels.
[read-only]
SystemWindowInsetLeftInt32. Returns the left system window inset in pixels.
[read-only]
SystemWindowInsetRightInt32. Returns the right system window inset in pixels.
[read-only]
SystemWindowInsetTopInt32. Returns the top system window inset in pixels.

Protected Properties

[read-only]
override
ThresholdClassIntPtr. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.
[read-only]
override
ThresholdTypeType. This API supports the Mono for Android infrastructure and is not intended to be used directly from your code.

Public Methods

ConsumeStableInsets() : WindowInsets
Returns a copy of this WindowInsets with the stable insets fully consumed.
ConsumeSystemWindowInsets() : WindowInsets
Returns a copy of this WindowInsets with the system window insets fully consumed.
ReplaceSystemWindowInsets(Rect) : WindowInsets
Returns a copy of this WindowInsets with selected system window insets replaced with new values.
ReplaceSystemWindowInsets(Int32, Int32, Int32, Int32) : WindowInsets
Returns a copy of this WindowInsets with selected system window insets replaced with new values.