Package-level declarations

Types

Link copied to clipboard

Whether a CachedAsyncImage cache layer may be read, written, both, or neither.

Functions

Link copied to clipboard
fun CachedAsyncImage(data: Any?, contentDescription: String?, modifier: Modifier = Modifier, memoryCachePolicy: ImageCachePolicy = ImageCachePolicy.ENABLED, diskCachePolicy: ImageCachePolicy = ImageCachePolicy.ENABLED, networkCachePolicy: ImageCachePolicy = ImageCachePolicy.ENABLED, memoryCacheKey: String? = null, diskCacheKey: String? = memoryCacheKey, crossfade: Boolean = true, placeholder: Painter? = null, error: Painter? = null, fallback: Painter? = error, alignment: Alignment = Alignment.Center, contentScale: ContentScale = ContentScale.Fit, alpha: Float = DefaultAlpha, colorFilter: ColorFilter? = null, clipToBounds: Boolean = true)

Loads an image from a URL, file, or bytes (data) with explicit memory, disk, and network cache policies. Use it instead of depending on an image library from feature code; the loader (Coil) is an implementation detail.