Share via


DisplayCutout.CutoutPath Property

Definition

Returns a Path that contains the cutout paths of all sides on the display.

public Android.Graphics.Path? CutoutPath { [Android.Runtime.Register("getCutoutPath", "()Landroid/graphics/Path;", "", ApiSince=31)] get; }
[<get: Android.Runtime.Register("getCutoutPath", "()Landroid/graphics/Path;", "", ApiSince=31)>]
member this.CutoutPath : Android.Graphics.Path

Property Value

a Path contains all the cutout paths based on display coordinate. Returns null if there is no cutout on the display.

Attributes

Remarks

Returns a Path that contains the cutout paths of all sides on the display.

To get a cutout path for one specific side, apps can intersect the Path with the Rect obtained from #getBoundingRectLeft(), #getBoundingRectTop(), #getBoundingRectRight() or #getBoundingRectBottom().

Java documentation for android.view.DisplayCutout.getCutoutPath().

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