StripeImage

fun StripeImage(url: String, imageLoader: StripeImageLoader, contentDescription: String?, modifier: Modifier = Modifier, contentScale: ContentScale = ContentScale.Fit, colorFilter: ColorFilter? = null, debugPainter: Painter? = null, alignment: Alignment = Alignment.Center, disableAnimations: Boolean = false, errorContent: @Composable BoxWithConstraintsScope.() -> Unit = {}, loadingContent: @Composable BoxWithConstraintsScope.() -> Unit = {})

A composable that executes an image request asynchronously using the provided StripeImageLoader and renders the result.

Parameters

url

to be requested and rendered.

contentDescription

Text used by accessibility services to describe what this image represents. This should always be provided unless this image is used for decorative purposes, and does not represent a meaningful action that a user can take.

imageLoader

The StripeImageLoader that will be used to execute the request.

debugPainter

If provided, this painter will be render on Compose previews.

modifier

Modifier used to adjust the layout algorithm or draw decoration content.

disableAnimations

If true, there will be no animations between icon states.

errorContent

content to render when image loading fails.

loadingContent

content to render when image loads.

contentScale

Optional scale parameter used to determine the aspect ratio scaling to be used if the bounds are a different size from the intrinsic size of the painter.