PainterProvider

@Immutable
interface PainterProvider

Provides a Painter for an image, which may be transformed by the provided hints.

Note: implementations of this interface should handle the passed PainterHints correctly. For now, this means calling PainterPathHint.patch and PainterSvgPatchHint.patch. Most likely, a PainterProvider should also hold the resource path and ClassLoader references.

Inheritors

Functions

Link copied to clipboard
@Composable
abstract fun getPainter(vararg hints: PainterHint): State<Painter>

Provides a Painter using the specified PainterHints. The painters are remembered and this function can be called multiple times for the same data.