Package 

Class SingletonAsyncImageKt

    • Method Summary

      Modifier and Type Method Description
      final static <ERROR CLASS> AsyncImage(Object model, String contentDescription, Modifier modifier, Painter placeholder, Painter error, Painter fallback, 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> AsyncImage(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) A composable that executes an ImageRequest asynchronously and renders the result.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • AsyncImage

         final static <ERROR CLASS> AsyncImage(Object model, String contentDescription, Modifier modifier, Painter placeholder, Painter error, Painter fallback, 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.
        placeholder - A Painter that is displayed while the image is loading.
        error - A Painter that is displayed when the image request is unsuccessful.
        fallback - A Painter that is displayed when the request's ImageRequest.data is null.
        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.
      • AsyncImage

         final static <ERROR CLASS> AsyncImage(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)

        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.