-
- All Implemented Interfaces:
public final class DrawablePainterKt
-
-
Method Summary
Modifier and Type Method Description final static PainterrememberDrawablePainter(Drawable drawable)Remembers Drawable wrapped up as a Painter. -
-
Method Detail
-
rememberDrawablePainter
@Composable() final static Painter rememberDrawablePainter(Drawable drawable)
Remembers Drawable wrapped up as a Painter. This function attempts to un-wrap the drawable contents and use Compose primitives where possible.
If the provided drawable is
null, an empty no-op painter is returned.This function tries to dispatch lifecycle events to drawable as much as possible from within Compose.
-
-
-
-