DefaultRequestOptions

class DefaultRequestOptions(interceptorDispatcher: CoroutineDispatcher, fetcherDispatcher: CoroutineDispatcher, decoderDispatcher: CoroutineDispatcher, transformationDispatcher: CoroutineDispatcher, transitionFactory: Transition.Factory, precision: Precision, bitmapConfig: Bitmap.Config, allowHardware: Boolean, allowRgb565: Boolean, placeholder: Drawable?, error: Drawable?, fallback: Drawable?, memoryCachePolicy: CachePolicy, diskCachePolicy: CachePolicy, networkCachePolicy: CachePolicy)

A set of default options that are used to fill in unset ImageRequest values.

See also

Constructors

DefaultRequestOptions
Link copied to clipboard
fun DefaultRequestOptions(interceptorDispatcher: CoroutineDispatcher = Dispatchers.Main.immediate, fetcherDispatcher: CoroutineDispatcher = Dispatchers.IO, decoderDispatcher: CoroutineDispatcher = Dispatchers.IO, transformationDispatcher: CoroutineDispatcher = Dispatchers.IO, transitionFactory: Transition.Factory = Transition.Factory.NONE, precision: Precision = Precision.AUTOMATIC, bitmapConfig: Bitmap.Config = DEFAULT_BITMAP_CONFIG, allowHardware: Boolean = true, allowRgb565: Boolean = false, placeholder: Drawable? = null, error: Drawable? = null, fallback: Drawable? = null, memoryCachePolicy: CachePolicy = CachePolicy.ENABLED, diskCachePolicy: CachePolicy = CachePolicy.ENABLED, networkCachePolicy: CachePolicy = CachePolicy.ENABLED)

Functions

copy
Link copied to clipboard
fun copy(interceptorDispatcher: CoroutineDispatcher = this.interceptorDispatcher, fetcherDispatcher: CoroutineDispatcher = this.fetcherDispatcher, decoderDispatcher: CoroutineDispatcher = this.decoderDispatcher, transformationDispatcher: CoroutineDispatcher = this.transformationDispatcher, transitionFactory: Transition.Factory = this.transitionFactory, precision: Precision = this.precision, bitmapConfig: Bitmap.Config = this.bitmapConfig, allowHardware: Boolean = this.allowHardware, allowRgb565: Boolean = this.allowRgb565, placeholder: Drawable? = this.placeholder, error: Drawable? = this.error, fallback: Drawable? = this.fallback, memoryCachePolicy: CachePolicy = this.memoryCachePolicy, diskCachePolicy: CachePolicy = this.diskCachePolicy, networkCachePolicy: CachePolicy = this.networkCachePolicy): DefaultRequestOptions
equals
Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
hashCode
Link copied to clipboard
open override fun hashCode(): Int

Properties

allowHardware
Link copied to clipboard
val allowHardware: Boolean = true
allowRgb565
Link copied to clipboard
val allowRgb565: Boolean = false
bitmapConfig
Link copied to clipboard
val bitmapConfig: Bitmap.Config
decoderDispatcher
Link copied to clipboard
val decoderDispatcher: CoroutineDispatcher
diskCachePolicy
Link copied to clipboard
val diskCachePolicy: CachePolicy
error
Link copied to clipboard
val error: Drawable? = null
fallback
Link copied to clipboard
val fallback: Drawable? = null
fetcherDispatcher
Link copied to clipboard
val fetcherDispatcher: CoroutineDispatcher
interceptorDispatcher
Link copied to clipboard
val interceptorDispatcher: CoroutineDispatcher
memoryCachePolicy
Link copied to clipboard
val memoryCachePolicy: CachePolicy
networkCachePolicy
Link copied to clipboard
val networkCachePolicy: CachePolicy
placeholder
Link copied to clipboard
val placeholder: Drawable? = null
precision
Link copied to clipboard
val precision: Precision
transformationDispatcher
Link copied to clipboard
val transformationDispatcher: CoroutineDispatcher
transitionFactory
Link copied to clipboard
val transitionFactory: Transition.Factory