java.lang.Object | |
↳ | com.facebook.imagepipeline.animated.base.AnimatedDrawableOptionsBuilder |
Builder for AnimatedDrawableOptions
.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnimatedDrawableOptionsBuilder() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
AnimatedDrawableOptions |
build()
Builds the immutable options instance.
| ||||||||||
boolean |
getAllowPrefetching()
Gets whether the drawable can use worker threads to optimistically prefetch frames.
| ||||||||||
boolean |
getEnableDebugging()
Gets whether to enable additional verbose debugging diagnostics.
| ||||||||||
boolean |
getForceKeepAllFramesInMemory()
Gets whether all the rendered frames should be held in memory disregarding other constraints.
| ||||||||||
int |
getMaximumBytes()
Gets the maximum bytes that the backend can use to cache image frames in memory.
| ||||||||||
AnimatedDrawableOptionsBuilder |
setAllowPrefetching(boolean allowPrefetching)
Sets whether the drawable can use worker threads to optimistically prefetch frames.
| ||||||||||
AnimatedDrawableOptionsBuilder |
setEnableDebugging(boolean enableDebugging)
Sets whether to enable additional verbose debugging diagnostics.
| ||||||||||
AnimatedDrawableOptionsBuilder |
setForceKeepAllFramesInMemory(boolean forceKeepAllFramesInMemory)
Sets whether all the rendered frames should be held in memory disregarding other constraints.
| ||||||||||
AnimatedDrawableOptionsBuilder |
setMaximumBytes(int maximumBytes)
Sets the maximum bytes that the backend can use to cache image frames in memory.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Builds the immutable options instance.
Gets whether the drawable can use worker threads to optimistically prefetch frames.
Gets whether to enable additional verbose debugging diagnostics.
Gets whether all the rendered frames should be held in memory disregarding other constraints.
Gets the maximum bytes that the backend can use to cache image frames in memory.
Sets whether the drawable can use worker threads to optimistically prefetch frames.
allowPrefetching | whether the backend can use worker threads to prefetch frames |
---|
Sets whether to enable additional verbose debugging diagnostics.
enableDebugging | whether to enable additional verbose debugging diagnostics |
---|
Sets whether all the rendered frames should be held in memory disregarding other constraints.
forceKeepAllFramesInMemory | whether to force the frames to be held in memory |
---|
Sets the maximum bytes that the backend can use to cache image frames in memory.
maximumBytes | maximum bytes that the backend can use to cache image frames in memory or -1 to use the default |
---|