Defaults

class Defaults(val fileSystem: FileSystem = defaultFileSystem(), val interceptorCoroutineContext: CoroutineContext = EmptyCoroutineContext, val fetcherCoroutineContext: CoroutineContext = ioCoroutineDispatcher(), val decoderCoroutineContext: CoroutineContext = ioCoroutineDispatcher(), val memoryCachePolicy: CachePolicy = CachePolicy.ENABLED, val diskCachePolicy: CachePolicy = CachePolicy.ENABLED, val networkCachePolicy: CachePolicy = CachePolicy.ENABLED, val placeholderFactory: (ImageRequest) -> Image? = EMPTY_IMAGE_FACTORY, val errorFactory: (ImageRequest) -> Image? = EMPTY_IMAGE_FACTORY, val fallbackFactory: (ImageRequest) -> Image? = EMPTY_IMAGE_FACTORY, val sizeResolver: SizeResolver = SizeResolver.ORIGINAL, val scale: Scale = Scale.FIT, val precision: Precision = Precision.EXACT, val extras: Extras = Extras.EMPTY)

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

Constructors

Link copied to clipboard
constructor(fileSystem: FileSystem = defaultFileSystem(), interceptorCoroutineContext: CoroutineContext = EmptyCoroutineContext, fetcherCoroutineContext: CoroutineContext = ioCoroutineDispatcher(), decoderCoroutineContext: CoroutineContext = ioCoroutineDispatcher(), memoryCachePolicy: CachePolicy = CachePolicy.ENABLED, diskCachePolicy: CachePolicy = CachePolicy.ENABLED, networkCachePolicy: CachePolicy = CachePolicy.ENABLED, placeholderFactory: (ImageRequest) -> Image? = EMPTY_IMAGE_FACTORY, errorFactory: (ImageRequest) -> Image? = EMPTY_IMAGE_FACTORY, fallbackFactory: (ImageRequest) -> Image? = EMPTY_IMAGE_FACTORY, sizeResolver: SizeResolver = SizeResolver.ORIGINAL, scale: Scale = Scale.FIT, precision: Precision = Precision.EXACT, extras: Extras = Extras.EMPTY)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard
fun copy(fileSystem: FileSystem = this.fileSystem, interceptorCoroutineContext: CoroutineContext = this.interceptorCoroutineContext, fetcherCoroutineContext: CoroutineContext = this.fetcherCoroutineContext, decoderCoroutineContext: CoroutineContext = this.decoderCoroutineContext, memoryCachePolicy: CachePolicy = this.memoryCachePolicy, diskCachePolicy: CachePolicy = this.diskCachePolicy, networkCachePolicy: CachePolicy = this.networkCachePolicy, placeholderFactory: (ImageRequest) -> Image? = this.placeholderFactory, errorFactory: (ImageRequest) -> Image? = this.errorFactory, fallbackFactory: (ImageRequest) -> Image? = this.fallbackFactory, sizeResolver: SizeResolver = this.sizeResolver, scale: Scale = this.scale, precision: Precision = this.precision, extras: Extras = this.extras): ImageRequest.Defaults