Defaults
@Poko
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)
Properties
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