Class LottieImageAsset


  • public class LottieImageAsset
    extends java.lang.Object
    Data class describing an image asset exported by bodymovin.
    • Constructor Summary

      Constructors 
      Constructor Description
      LottieImageAsset​(int width, int height, java.lang.String id, java.lang.String fileName, java.lang.String dirName)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      Bitmap getBitmap()
      Returns the bitmap that has been stored for this image asset if one was explicitly set.
      java.lang.String getDirName()  
      java.lang.String getFileName()  
      int getHeight()  
      java.lang.String getId()  
      int getWidth()  
      boolean hasBitmap()
      Returns whether this asset has an embedded Bitmap or whether the fileName is a base64 encoded bitmap.
      void setBitmap​(Bitmap bitmap)
      TODO
      • Methods inherited from class java.lang.Object

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

      • LottieImageAsset

        public LottieImageAsset​(int width,
                                int height,
                                java.lang.String id,
                                java.lang.String fileName,
                                java.lang.String dirName)
    • Method Detail

      • getWidth

        public int getWidth()
      • getHeight

        public int getHeight()
      • getId

        public java.lang.String getId()
      • getFileName

        public java.lang.String getFileName()
      • getDirName

        public java.lang.String getDirName()
      • getBitmap

        @Nullable
        public Bitmap getBitmap()
        Returns the bitmap that has been stored for this image asset if one was explicitly set.
      • setBitmap

        public void setBitmap​(@Nullable
                              Bitmap bitmap)
        TODO
      • hasBitmap

        public boolean hasBitmap()
        Returns whether this asset has an embedded Bitmap or whether the fileName is a base64 encoded bitmap.