remember Glide Painter
@Composable()
Content copied to clipboard
Remembers a LoadPainter that use Glide to load images.
Changes to request, requestManager, shouldRefetchOnSizeChange & requestBuilder will result in the LoadPainter being updated.
Parameters
request
The load request. See RequestManager.load for the types supported.
requestManager
The RequestManager to use when requesting the image.
shouldRefetchOnSizeChange
the value for LoadPainter.shouldRefetchOnSizeChange.
requestBuilder
Optional builder for every created RequestBuilder.
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.