Package 

Class DrawablePainterKt

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
    • Field Summary

      Fields 
      Modifier and Type Field Description
    • Constructor Summary

      Constructors 
      Constructor Description
    • Enum Constant Summary

      Enum Constants 
      Enum Constant Description
    • Method Summary

      Modifier and Type Method Description
      final static Painter rememberDrawablePainter(Drawable drawable) Remembers Drawable wrapped up as a Painter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

    • 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.