StripeImage

fun StripeImage(url: String, imageLoader: StripeImageLoader, contentDescription: String?, modifier: Modifier = Modifier, contentScale: ContentScale = ContentScale.Fit, 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.

modifier

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

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.