-
public final class SubcomposeAsyncImageKt
-
-
Method Summary
Modifier and Type Method Description final static UnitSubcomposeAsyncImage(Object model, String contentDescription, ImageLoader imageLoader, 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 UnitSubcomposeAsyncImage(Object model, String contentDescription, ImageLoader imageLoader, 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. final static <ERROR CLASS>SubcomposeAsyncImageContent(SubcomposeAsyncImageScope $self, Modifier modifier, Painter painter, String contentDescription, Alignment alignment, ContentScale contentScale, Float alpha, ColorFilter colorFilter)A composable that draws SubcomposeAsyncImage's content with SubcomposeAsyncImageScope's properties. -
-
Method Detail
-
SubcomposeAsyncImage
@Composable() final static Unit SubcomposeAsyncImage(Object model, String contentDescription, ImageLoader imageLoader, 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.imageLoader- The ImageLoader that will be used to execute the request.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
@Composable() final static Unit SubcomposeAsyncImage(Object model, String contentDescription, ImageLoader imageLoader, 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.imageLoader- The ImageLoader that will be used to execute the request.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.
-
SubcomposeAsyncImageContent
@Composable() final static <ERROR CLASS> SubcomposeAsyncImageContent(SubcomposeAsyncImageScope $self, Modifier modifier, Painter painter, String contentDescription, Alignment alignment, ContentScale contentScale, Float alpha, ColorFilter colorFilter)
A composable that draws SubcomposeAsyncImage's content with SubcomposeAsyncImageScope's properties.
-
-
-
-