Package com.airbnb.lottie
Class LottieImageAsset
- java.lang.Object
-
- com.airbnb.lottie.LottieImageAsset
-
public class LottieImageAsset extends java.lang.ObjectData 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 BitmapgetBitmap()Returns the bitmap that has been stored for this image asset if one was explicitly set.java.lang.StringgetDirName()java.lang.StringgetFileName()intgetHeight()java.lang.StringgetId()intgetWidth()booleanhasBitmap()Returns whether this asset has an embedded Bitmap or whether the fileName is a base64 encoded bitmap.voidsetBitmap(Bitmap bitmap)TODO
-
-
-
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.
-
-