DisplayCutoutCompat

public final class DisplayCutoutCompat
extends Object

java.lang.Object
   ↳ androidx.core.view.DisplayCutoutCompat


Represents the area of the display that is not functional for displaying content.

DisplayCutoutCompat instances are immutable.

Summary

Public constructors

DisplayCutoutCompat(Rect safeInsets, List<Rect> boundingRects)

Creates a DisplayCutout instance.

DisplayCutoutCompat(Insets safeInsets, Rect boundLeft, Rect boundTop, Rect boundRight, Rect boundBottom, Insets waterfallInsets)

Creates a DisplayCutout instance.

Public methods

boolean equals(Object o)
List<Rect> getBoundingRects()

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

int getSafeInsetBottom()

Returns the inset from the bottom which avoids the display cutout in pixels.

int getSafeInsetLeft()

Returns the inset from the left which avoids the display cutout in pixels.

int getSafeInsetRight()

Returns the inset from the right which avoids the display cutout in pixels.

int getSafeInsetTop()

Returns the inset from the top which avoids the display cutout in pixels.

Insets getWaterfallInsets()

Returns the insets representing the curved areas of a waterfall display.

int hashCode()
String toString()

Inherited methods