-
public final class SingletonSubcomposeAsyncImageKt
-
-
Method Summary
Modifier and Type Method Description final static <ERROR CLASS>SubcomposeAsyncImage(Object model, String contentDescription, Modifier modifier, Function2<SubcomposeAsyncImageScope, AsyncImagePainter.State.Loading, Unit> loading, Function2<SubcomposeAsyncImageScope, AsyncImagePainter.State.Success, Unit> success, Function2<SubcomposeAsyncImageScope, AsyncImagePainter.State.Error, Unit> error, Function1<AsyncImagePainter.State.Loading, Unit> onLoading, Function1<AsyncImagePainter.State.Success, Unit> onSuccess, Function1<AsyncImagePainter.State.Error, Unit> onError, Alignment alignment, ContentScale contentScale, Float alpha, ColorFilter colorFilter, FilterQuality filterQuality)A composable that executes an ImageRequest asynchronously and renders the result. final static <ERROR CLASS>SubcomposeAsyncImage(Object model, String contentDescription, Modifier modifier, Function1<AsyncImagePainter.State, AsyncImagePainter.State> transform, Function1<AsyncImagePainter.State, Unit> onState, Alignment alignment, ContentScale contentScale, Float alpha, ColorFilter colorFilter, FilterQuality filterQuality, Function1<SubcomposeAsyncImageScope, Unit> content)A composable that executes an ImageRequest asynchronously and renders the result. -
-
Method Detail
-
SubcomposeAsyncImage
final static <ERROR CLASS> SubcomposeAsyncImage(Object model, String contentDescription, Modifier modifier, Function2<SubcomposeAsyncImageScope, AsyncImagePainter.State.Loading, Unit> loading, Function2<SubcomposeAsyncImageScope, AsyncImagePainter.State.Success, Unit> success, Function2<SubcomposeAsyncImageScope, AsyncImagePainter.State.Error, Unit> error, Function1<AsyncImagePainter.State.Loading, Unit> onLoading, Function1<AsyncImagePainter.State.Success, Unit> onSuccess, Function1<AsyncImagePainter.State.Error, Unit> onError, Alignment alignment, ContentScale contentScale, Float alpha, ColorFilter colorFilter, FilterQuality filterQuality)
A composable that executes an ImageRequest asynchronously and renders the result.
- Parameters:
model- Either an ImageRequest or the ImageRequest.data value.contentDescription- Text used by accessibility services to describe what this image represents.modifier- Modifier used to adjust the layout algorithm or draw decoration content.loading- An optional callback to overwrite what's drawn while the image request is loading.success- An optional callback to overwrite what's drawn when the image request succeeds.error- An optional callback to overwrite what's drawn when the image request fails.onLoading- Called when the image request begins loading.onSuccess- Called when the image request completes successfully.onError- Called when the image request completes unsuccessfully.alignment- Optional alignment parameter used to place the AsyncImagePainter in the given bounds defined by the width and height.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 AsyncImagePainter.alpha- Optional opacity to be applied to the AsyncImagePainter when it is rendered onscreen.colorFilter- Optional ColorFilter to apply for the AsyncImagePainter when it is rendered onscreen.filterQuality- Sampling algorithm applied to a bitmap when it is scaled and drawn into the destination.
-
SubcomposeAsyncImage
final static <ERROR CLASS> SubcomposeAsyncImage(Object model, String contentDescription, Modifier modifier, Function1<AsyncImagePainter.State, AsyncImagePainter.State> transform, Function1<AsyncImagePainter.State, Unit> onState, Alignment alignment, ContentScale contentScale, Float alpha, ColorFilter colorFilter, FilterQuality filterQuality, Function1<SubcomposeAsyncImageScope, Unit> content)
A composable that executes an ImageRequest asynchronously and renders the result.
- Parameters:
model- Either an ImageRequest or the ImageRequest.data value.contentDescription- Text used by accessibility services to describe what this image represents.modifier- Modifier used to adjust the layout algorithm or draw decoration content.transform- A callback to transform a new State before it's applied to the AsyncImagePainter.onState- Called when the state of this painter changes.alignment- Optional alignment parameter used to place the AsyncImagePainter in the given bounds defined by the width and height.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 AsyncImagePainter.alpha- Optional opacity to be applied to the AsyncImagePainter when it is rendered onscreen.colorFilter- Optional ColorFilter to apply for the AsyncImagePainter when it is rendered onscreen.filterQuality- Sampling algorithm applied to a bitmap when it is scaled and drawn into the destination.content- A callback to draw the content inside an SubcomposeAsyncImageScope.
-
-
-
-