WindowInsets.DisplayCutout Property
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.