-
public class AnimatedDrawableOptionsBuilderBuilder for AnimatedDrawableOptions.
-
-
Method Summary
Modifier and Type Method Description booleangetForceKeepAllFramesInMemory()Gets whether all the rendered frames should be held in memory disregarding other constraints. AnimatedDrawableOptionsBuildersetForceKeepAllFramesInMemory(boolean forceKeepAllFramesInMemory)Sets whether all the rendered frames should be held in memory disregarding other constraints. booleangetAllowPrefetching()Gets whether the drawable can use worker threads to optimistically prefetch frames. AnimatedDrawableOptionsBuildersetAllowPrefetching(boolean allowPrefetching)Sets whether the drawable can use worker threads to optimistically prefetch frames. intgetMaximumBytes()Gets the maximum bytes that the backend can use to cache image frames in memory. AnimatedDrawableOptionsBuildersetMaximumBytes(int maximumBytes)Sets the maximum bytes that the backend can use to cache image frames in memory. booleangetEnableDebugging()Gets whether to enable additional verbose debugging diagnostics. AnimatedDrawableOptionsBuildersetEnableDebugging(boolean enableDebugging)Sets whether to enable additional verbose debugging diagnostics. AnimatedDrawableOptionsbuild()Builds the immutable options instance. -
-
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
-
build
AnimatedDrawableOptions build()
Builds the immutable options instance.
-
-
-
-