public class

AnimatedDrawableOptions

extends Object
java.lang.Object
   ↳ com.facebook.imagepipeline.animated.base.AnimatedDrawableOptions

Class Overview

Options for creating AnimatedDrawable2.

Summary

Fields
public static AnimatedDrawableOptions DEFAULTS Default options.
public final boolean allowPrefetching Whether the drawable can use worker threads to optimistically prefetch frames.
public final boolean enableDebugging Whether to enable additional verbose debugging diagnostics.
public final boolean forceKeepAllFramesInMemory Whether all the rendered frames should be held in memory disregarding other constraints.
public final int maximumBytes The maximum bytes that the backend can use to cache image frames in memory or -1 to use the default
Public Constructors
AnimatedDrawableOptions(AnimatedDrawableOptionsBuilder builder)
Creates AnimatedDrawableOptions with default options.
Public Methods
static AnimatedDrawableOptionsBuilder newBuilder()
Creates a new builder.
[Expand]
Inherited Methods
From class java.lang.Object

Fields

public static AnimatedDrawableOptions DEFAULTS

Default options.

public final boolean allowPrefetching

Whether the drawable can use worker threads to optimistically prefetch frames.

public final boolean enableDebugging

Whether to enable additional verbose debugging diagnostics.

public final boolean forceKeepAllFramesInMemory

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

public final int maximumBytes

The maximum bytes that the backend can use to cache image frames in memory or -1 to use the default

Public Constructors

public AnimatedDrawableOptions (AnimatedDrawableOptionsBuilder builder)

Creates AnimatedDrawableOptions with default options.

Public Methods

public static AnimatedDrawableOptionsBuilder newBuilder ()

Creates a new builder.

Returns
  • the builder