Companion

object Companion

Factory helpers for constructing ToolbarInsets values from non-Compose (Java/View) code.

Functions

Link copied to clipboard
fun fixedTop(topPx: Int, density: Float): ToolbarInsets

Java-friendly factory for a Custom inset reserving a fixed top strip of topPx physical pixels at density (bottom/start/end zero). The SDK host uses this to mirror the View-side toolbar slot (Dp is a Kotlin value class, so Custom can't be constructed from Java directly).