次の方法で共有


DisplayCutout Constructors

Definition

Overloads

DisplayCutout(Rect, IList<Rect>)

Creates a DisplayCutout instance.

DisplayCutout(Insets, Rect, Rect, Rect, Rect)

Creates a DisplayCutout instance.

DisplayCutout(Insets, Rect, Rect, Rect, Rect, Insets)

Creates a DisplayCutout instance.

DisplayCutout(Rect, IList<Rect>)

Creates a DisplayCutout instance.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;Ljava/util/List;)V", "", ApiSince=28)]
public DisplayCutout (Android.Graphics.Rect? safeInsets, System.Collections.Generic.IList<Android.Graphics.Rect>? boundingRects);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Rect;Ljava/util/List;)V", "", ApiSince=28)>]
new Android.Views.DisplayCutout : Android.Graphics.Rect * System.Collections.Generic.IList<Android.Graphics.Rect> -> Android.Views.DisplayCutout

Parameters

safeInsets
Rect

the insets from each edge which avoid the display cutout as returned by #getSafeInsetTop() etc.

boundingRects
IList<Rect>

the bounding rects of the display cutouts as returned by #getBoundingRects() ()}.

Attributes

Remarks

Creates a DisplayCutout instance.

Note that this is only useful for tests. For production code, developers should always use a DisplayCutout obtained from the system.

This member is deprecated. Use DisplayCutout#DisplayCutout(Insets, Rect, Rect, Rect, Rect) instead.

Java documentation for android.view.DisplayCutout.DisplayCutout(android.graphics.Rect, java.util.List<android.graphics.Rect>).

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

DisplayCutout(Insets, Rect, Rect, Rect, Rect)

Creates a DisplayCutout instance.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Insets;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;)V", "", ApiSince=29)]
public DisplayCutout (Android.Graphics.Insets safeInsets, Android.Graphics.Rect? boundLeft, Android.Graphics.Rect? boundTop, Android.Graphics.Rect? boundRight, Android.Graphics.Rect? boundBottom);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Insets;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;)V", "", ApiSince=29)>]
new Android.Views.DisplayCutout : Android.Graphics.Insets * Android.Graphics.Rect * Android.Graphics.Rect * Android.Graphics.Rect * Android.Graphics.Rect -> Android.Views.DisplayCutout

Parameters

safeInsets
Insets

the insets from each edge which avoid the display cutout as returned by #getSafeInsetTop() etc.

boundLeft
Rect

the left bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).

boundTop
Rect

the top bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).

boundRight
Rect

the right bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).

boundBottom
Rect

the bottom bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).

Attributes

Remarks

Creates a DisplayCutout instance.

Note that this is only useful for tests. For production code, developers should always use a DisplayCutout obtained from the system.

Java documentation for android.view.DisplayCutout.DisplayCutout(android.graphics.Insets, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect).

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

DisplayCutout(Insets, Rect, Rect, Rect, Rect, Insets)

Creates a DisplayCutout instance.

[Android.Runtime.Register(".ctor", "(Landroid/graphics/Insets;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Insets;)V", "", ApiSince=30)]
public DisplayCutout (Android.Graphics.Insets safeInsets, Android.Graphics.Rect? boundLeft, Android.Graphics.Rect? boundTop, Android.Graphics.Rect? boundRight, Android.Graphics.Rect? boundBottom, Android.Graphics.Insets waterfallInsets);
[<Android.Runtime.Register(".ctor", "(Landroid/graphics/Insets;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Rect;Landroid/graphics/Insets;)V", "", ApiSince=30)>]
new Android.Views.DisplayCutout : Android.Graphics.Insets * Android.Graphics.Rect * Android.Graphics.Rect * Android.Graphics.Rect * Android.Graphics.Rect * Android.Graphics.Insets -> Android.Views.DisplayCutout

Parameters

safeInsets
Insets

the insets from each edge which avoid the display cutout as returned by #getSafeInsetTop() etc.

boundLeft
Rect

the left bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).

boundTop
Rect

the top bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).

boundRight
Rect

the right bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).

boundBottom
Rect

the bottom bounding rect of the display cutout in pixels. If null is passed, it's treated as an empty rectangle (0,0)-(0,0).

waterfallInsets
Insets

the insets for the curved areas in waterfall display.

Attributes

Remarks

Creates a DisplayCutout instance.

Note that this is only useful for tests. For production code, developers should always use a DisplayCutout obtained from the system.

Java documentation for android.view.DisplayCutout.DisplayCutout(android.graphics.Insets, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Rect, android.graphics.Insets).

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