rememberPainterLoader

fun rememberPainterLoader(density: Density = LocalDensity.current, layoutDirection: LayoutDirection = LocalLayoutDirection.current): PainterLoader

Create and remember a PainterLoader that uses the LocalDensity and LocalLayoutDirection to generate a Palette from a Painter.

Return

A PainterLoader for the given density and layoutDirection.

Parameters

density

The Density to use when drawing the Painter.

layoutDirection

The LayoutDirection to use when drawing the Painter.