AsyncBlurImage

@ExperimentalCoilApi
fun AsyncBlurImage(imageUrl: String, modifier: Modifier = Modifier, imageModifier: Modifier? = null, contentDescription: String? = null, contentScale: ContentScale = ContentScale.Fit, isCrossFadeRequired: Boolean = true, onImageLoadSuccess: () -> Unit = {}, onImageLoadFailure: () -> Unit = {})

This function is used to load an image asynchronously and blur it using BlurHash.

Parameters

imageUrl

The URL of the image to be loaded.

modifier

The modifier to be applied to the image.

imageModifier

The modifier to be applied to the image.

contentDescription

The content description to be applied to the image.

contentScale

The content scale to be applied to the image.

isCrossFadeRequired

Whether cross-fade is required or not.

onImageLoadSuccess

The callback to be called when the image is loaded successfully.

onImageLoadFailure

The callback to be called when the image is failed to load.

See also

AsyncImage