Function

getDisplayCutoutBounds

Returns a List of RectRulers, one RectRulers for each display cutout.

getDisplayCutoutBounds

Source set: Common
public fun Placeable.PlacementScope.getDisplayCutoutBounds(): List<RectRulers>

Returns a List of RectRulers, one RectRulers for each display cutout. Each RectRulers provides values for the bounds of the display cutout. WindowInsetsRulers.DisplayCutout provides the safe inset values for content avoiding all display cutouts.

Jetpack Compose beyond MaterialFree components, screens and templates for apps that don’t look like Google’s. Copy them into your app, or let your coding agent add them.Browse for free

Content updated: