다음을 통해 공유


WindowInsets.Type.DisplayCutout Method

Definition

Returns an insets type representing the area that used by DisplayCutout.

[Android.Runtime.Register("displayCutout", "()I", "", ApiSince=30)]
public static int DisplayCutout ();
[<Android.Runtime.Register("displayCutout", "()I", "", ApiSince=30)>]
static member DisplayCutout : unit -> int

Returns

Attributes

Remarks

Returns an insets type representing the area that used by DisplayCutout.

This is equivalent to the safe insets on #getDisplayCutout().

Note: During dispatch to View#onApplyWindowInsets, if the window is using the WindowManager.LayoutParams#LAYOUT_IN_DISPLAY_CUTOUT_MODE_DEFAULT defaultWindowManager.LayoutParams#layoutInDisplayCutoutMode, #getDisplayCutout() will return null even if the window overlaps a display cutout area, in which case the #displayCutout() displayCutout() inset will still report the accurate value.

Java documentation for android.view.WindowInsets.Type.displayCutout().

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