次の方法で共有


DisplayCutout.BoundingRects Property

Definition

Returns a list of Rects, each of which is the bounding rectangle for a non-functional area on the display.

public System.Collections.Generic.IList<Android.Graphics.Rect> BoundingRects { [Android.Runtime.Register("getBoundingRects", "()Ljava/util/List;", "", ApiSince=28)] get; }
[<get: Android.Runtime.Register("getBoundingRects", "()Ljava/util/List;", "", ApiSince=28)>]
member this.BoundingRects : System.Collections.Generic.IList<Android.Graphics.Rect>

Property Value

a list of bounding Rects, one for each display cutout area. No empty Rect is returned.

Attributes

Remarks

Returns a list of Rects, each of which is the bounding rectangle for a non-functional area on the display.

There will be at most one non-functional area per edge of the device.

Note that there is no bounding rectangle for waterfall cutout since it just represents the curved areas of the display but not the non-functional areas.

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

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