Android 12 Developer Preview is here! Try it out, and give us your feedback!

DrawCacheModifier

interface DrawCacheModifier : DrawModifier
androidx.compose.ui.draw.DrawCacheModifier

DrawModifier implementation that supports building a cache of objects to be referenced across draw calls

Summary

Public methods
abstract Unit

Callback invoked to re-build objects to be re-used across draw calls.

Inherited functions
Inherited extension functions
From androidx.compose.foundation.layout
Modifier
Modifier.absoluteOffset(x: Dp = 0.dp, y: Dp = 0.dp)

Offset the content by (x dp, y dp).

Modifier

Offset the content by offset px.

Modifier
Modifier.absolutePadding(left: Dp = 0.dp, top: Dp = 0.dp, right: Dp = 0.dp, bottom: Dp = 0.dp)

Apply additional space along each edge of the content in Dp: left, top, right and