WindowInsets.DisplayCutout Property

Definition

Returns the display cutout if there is one.

public Android.Views.DisplayCutout? DisplayCutout { [Android.Runtime.Register("getDisplayCutout", "()Landroid/view/DisplayCutout;", "", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getDisplayCutout", "()Landroid/view/DisplayCutout;", "", ApiSince=28)>]
member this.DisplayCutout : Android.Views.DisplayCutout

Property Value

the display cutout or null if there is none

Attributes

Remarks

Returns the display cutout if there is one.

Note: the display cutout will already be #consumeDisplayCutout consumed during dispatch to View#onApplyWindowInsets, unless the window has requested a WindowManager.LayoutParams#layoutInDisplayCutoutMode other than WindowManager.LayoutParams#LAYOUT_IN_DISPLAY_CUTOUT_MODE_NEVER never or WindowManager.LayoutParams#LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT default.

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

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