remember Coil Painter
@Composable()
Content copied to clipboard
Remembers a LoadPainter that use coil.Coil to load images.
Changes to request, imageLoader, shouldRefetchOnSizeChange & requestBuilder will result in the LoadPainter being updated.
Parameters
request
The load request. See ImageRequest.Builder.data for the types supported.
imageLoader
The ImageLoader to use when requesting the image. Defaults to CoilPainterDefaults.defaultImageLoader.
shouldRefetchOnSizeChange
the value for LoadPainter.shouldRefetchOnSizeChange.
requestBuilder
Optional builder for each created ImageRequest.
fadeIn
Whether to run a fade-in animation when images are successfully loaded. Default: false.
fadeInDurationMs
Duration for the fade animation in milliseconds when fadeIn is enabled.
previewPlaceholder
Drawable resource ID which will be displayed when this function is ran in preview mode.