-
- All Implemented Interfaces:
-
com.facebook.fresco.animation.backend.AnimationBackend,com.facebook.fresco.animation.backend.AnimationInformation
public class WebpAnimationBackend implements AnimationBackendAnimation backend that is used to draw webp frames.
-
-
Method Summary
Modifier and Type Method Description static WebpAnimationBackendcreate(String filePath)booleandrawFrame(Drawable parent, Canvas canvas, int frameNumber)voidsetAlpha(int alpha)voidsetColorFilter(@Nullable() ColorFilter colorFilter)synchronized voidsetBounds(Rect bounds)intgetIntrinsicWidth()intgetIntrinsicHeight()intgetSizeInBytes()voidclear()intgetFrameCount()intgetFrameDurationMs(int frameNumber)intgetLoopDurationMs()intwidth()intheight()intgetLoopCount()voidpreloadAnimation()voidsetAnimationListener(@Nullable() AnimationBackend.Listener listener)-
Methods inherited from class com.facebook.fresco.animation.backend.AnimationBackend
clear, drawFrame, getIntrinsicHeight, getIntrinsicWidth, getSizeInBytes, preloadAnimation, setAlpha, setAnimationListener, setBounds, setColorFilter -
Methods inherited from class com.facebook.fresco.animation.backend.AnimationInformation
getFrameCount, getFrameDurationMs, getLoopCount, getLoopDurationMs, height, width -
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Method Detail
-
create
static WebpAnimationBackend create(String filePath)
-
setAlpha
void setAlpha(int alpha)
-
setColorFilter
void setColorFilter(@Nullable() ColorFilter colorFilter)
-
getIntrinsicWidth
int getIntrinsicWidth()
-
getIntrinsicHeight
int getIntrinsicHeight()
-
getSizeInBytes
int getSizeInBytes()
-
clear
void clear()
-
getFrameCount
int getFrameCount()
-
getFrameDurationMs
int getFrameDurationMs(int frameNumber)
-
getLoopDurationMs
int getLoopDurationMs()
-
width
int width()
-
height
int height()
-
getLoopCount
int getLoopCount()
-
preloadAnimation
void preloadAnimation()
-
setAnimationListener
void setAnimationListener(@Nullable() AnimationBackend.Listener listener)
-
-
-
-