Package 

Class AnimatedDrawableOptionsBuilder

    • Method Detail

      • getForceKeepAllFramesInMemory

         boolean getForceKeepAllFramesInMemory()

        Gets whether all the rendered frames should be held in memory disregarding other constraints.

      • setForceKeepAllFramesInMemory

         AnimatedDrawableOptionsBuilder setForceKeepAllFramesInMemory(boolean forceKeepAllFramesInMemory)

        Sets whether all the rendered frames should be held in memory disregarding other constraints.

        Parameters:
        forceKeepAllFramesInMemory - whether to force the frames to be held in memory
      • getAllowPrefetching

         boolean getAllowPrefetching()

        Gets whether the drawable can use worker threads to optimistically prefetch frames.

      • setAllowPrefetching

         AnimatedDrawableOptionsBuilder setAllowPrefetching(boolean allowPrefetching)

        Sets whether the drawable can use worker threads to optimistically prefetch frames.

        Parameters:
        allowPrefetching - whether the backend can use worker threads to prefetch frames
      • getMaximumBytes

         int getMaximumBytes()

        Gets the maximum bytes that the backend can use to cache image frames in memory.

      • setMaximumBytes

         AnimatedDrawableOptionsBuilder setMaximumBytes(int maximumBytes)

        Sets the maximum bytes that the backend can use to cache image frames in memory.

        Parameters:
        maximumBytes - maximum bytes that the backend can use to cache image frames in memory or-1 to use the default
      • getEnableDebugging

         boolean getEnableDebugging()

        Gets whether to enable additional verbose debugging diagnostics.

      • setEnableDebugging

         AnimatedDrawableOptionsBuilder setEnableDebugging(boolean enableDebugging)

        Sets whether to enable additional verbose debugging diagnostics.

        Parameters:
        enableDebugging - whether to enable additional verbose debugging diagnostics