DisplayCutout Constructors
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.
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.
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.
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.
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.
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.