Insets
Built Singleton
System bar heights and display cutout dimensions for safe-area positioning.
| Module type | insets |
|---|---|
| Default expression ID | ins |
| Refresh rate | On configuration change |
Declaration
<module type="insets" id="ins" /> Properties
Reference any of these from a template via
{ins:propertyName}.
| Name | Description | Example | Format arg |
|---|---|---|---|
statusBarHeight | Status bar height in px | 84 | — |
navBarHeight | Navigation bar height in px | 126 | — |
cutoutTop | Top display cutout in px | 84 | — |
cutoutBottom | Bottom display cutout in px | 0 | — |
cutoutLeft | Left display cutout in px | 0 | — |
cutoutRight | Right display cutout in px | 0 | — |