类 AvifSequenceDrawable

  • 所有已实现的接口:
    android.graphics.drawable.Animatable

    public class AvifSequenceDrawable
    extends android.graphics.drawable.Drawable
    implements android.graphics.drawable.Animatable
    • 字段概要

      字段 
      修饰符和类型 字段 说明
      static boolean DEBUG  
      static int LOOP_DEFAULT
      Use loop count stored in source data, or LOOP_ONCE if not present.
      static int LOOP_FINITE
      Loop a finite number of times, which can be set using setLoopCount.
      static int LOOP_INF
      Loop continuously.
    • 方法概要

      所有方法 实例方法 具体方法 
      修饰符和类型 方法 说明
      void destroy()
      Marks the drawable as permanently recycled (and thus unusable), and releases any owned Bitmaps drawable to its BitmapProvider, if attached.
      void draw​(android.graphics.Canvas canvas)  
      int getIntrinsicHeight()  
      int getIntrinsicWidth()  
      int getOpacity()  
      int getSize()  
      void invalidateSelf()  
      boolean isDestroyed()  
      boolean isRunning()  
      void setAlpha​(int alpha)  
      void setColorFilter​(android.graphics.ColorFilter colorFilter)  
      void setFilterBitmap​(boolean filter)  
      void setLoopBehavior​(int loopBehavior)
      Define looping behavior of frame sequence.
      void setLoopCount​(int loopCount)
      Set the number of loops in LOOP_FINITE mode.
      void setOnFinishedListener​(AvifSequenceDrawable.OnFinishedListener onFinishedListener)
      Register a callback to be invoked when a FrameSequenceDrawable finishes looping.
      boolean setVisible​(boolean visible, boolean restart)  
      void start()  
      void stop()  
      • 从类继承的方法 android.graphics.drawable.Drawable

        applyTheme, canApplyTheme, clearColorFilter, copyBounds, copyBounds, createFromPath, createFromResourceStream, createFromResourceStream, createFromStream, createFromXml, createFromXml, createFromXmlInner, createFromXmlInner, getAlpha, getBounds, getCallback, getChangingConfigurations, getColorFilter, getConstantState, getCurrent, getDirtyBounds, getHotspotBounds, getLayoutDirection, getLevel, getMinimumHeight, getMinimumWidth, getOpticalInsets, getOutline, getPadding, getState, getTransparentRegion, hasFocusStateSpecified, inflate, inflate, isAutoMirrored, isFilterBitmap, isProjected, isStateful, isVisible, jumpToCurrentState, mutate, onBoundsChange, onLayoutDirectionChanged, onLevelChange, onStateChange, resolveOpacity, scheduleSelf, setAutoMirrored, setBounds, setBounds, setCallback, setChangingConfigurations, setColorFilter, setDither, setHotspot, setHotspotBounds, setLayoutDirection, setLevel, setState, setTint, setTintBlendMode, setTintList, setTintMode, unscheduleSelf
      • 从类继承的方法 java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • 字段详细资料

      • LOOP_FINITE

        public static final int LOOP_FINITE
        Loop a finite number of times, which can be set using setLoopCount. Default to loop once.
        另请参阅:
        常量字段值
      • LOOP_INF

        public static final int LOOP_INF
        Loop continuously. The OnFinishedListener will never be called.
        另请参阅:
        常量字段值
      • LOOP_DEFAULT

        public static final int LOOP_DEFAULT
        Use loop count stored in source data, or LOOP_ONCE if not present.
        另请参阅:
        常量字段值
    • 构造器详细资料

      • AvifSequenceDrawable

        public AvifSequenceDrawable​(com.tencent.libqcloudavif.AvifDecoder avifDecoder,
                                    long bytesLength)
      • AvifSequenceDrawable

        public AvifSequenceDrawable​(com.tencent.libqcloudavif.AvifDecoder avifDecoder,
                                    long bytesLength,
                                    AvifSequenceDrawable.BitmapProvider bitmapProvider)
    • 方法详细资料

      • setLoopBehavior

        public void setLoopBehavior​(int loopBehavior)
        Define looping behavior of frame sequence.

        Must be one of LOOP_INF, LOOP_DEFAULT, or LOOP_FINITE.

        参数:
        loopBehavior - loopBehavior
      • setLoopCount

        public void setLoopCount​(int loopCount)
        Set the number of loops in LOOP_FINITE mode. The number must be a postive integer.
        参数:
        loopCount - loop Count
      • isDestroyed

        public boolean isDestroyed()
      • destroy

        public void destroy()
        Marks the drawable as permanently recycled (and thus unusable), and releases any owned Bitmaps drawable to its BitmapProvider, if attached.

        If no BitmapProvider is attached to the drawable, recycle() is called on the Bitmaps.

      • draw

        public void draw​(@NonNull
                         android.graphics.Canvas canvas)
        指定者:
        draw 在类中 android.graphics.drawable.Drawable
      • invalidateSelf

        public void invalidateSelf()
        覆盖:
        invalidateSelf 在类中 android.graphics.drawable.Drawable
      • start

        public void start()
        指定者:
        start 在接口中 android.graphics.drawable.Animatable
      • stop

        public void stop()
        指定者:
        stop 在接口中 android.graphics.drawable.Animatable
      • isRunning

        public boolean isRunning()
        指定者:
        isRunning 在接口中 android.graphics.drawable.Animatable
      • setVisible

        public boolean setVisible​(boolean visible,
                                  boolean restart)
        覆盖:
        setVisible 在类中 android.graphics.drawable.Drawable
      • setFilterBitmap

        public void setFilterBitmap​(boolean filter)
        覆盖:
        setFilterBitmap 在类中 android.graphics.drawable.Drawable
      • setAlpha

        public void setAlpha​(int alpha)
        指定者:
        setAlpha 在类中 android.graphics.drawable.Drawable
      • setColorFilter

        public void setColorFilter​(android.graphics.ColorFilter colorFilter)
        指定者:
        setColorFilter 在类中 android.graphics.drawable.Drawable
      • getIntrinsicWidth

        public int getIntrinsicWidth()
        覆盖:
        getIntrinsicWidth 在类中 android.graphics.drawable.Drawable
      • getIntrinsicHeight

        public int getIntrinsicHeight()
        覆盖:
        getIntrinsicHeight 在类中 android.graphics.drawable.Drawable
      • getOpacity

        public int getOpacity()
        指定者:
        getOpacity 在类中 android.graphics.drawable.Drawable
      • getSize

        public int getSize()