Package 

Class AsyncImageKt

    • Method Detail

      • AsyncImage

        @Composable() final static Unit AsyncImage(Object model, String contentDescription, ImageLoader imageLoader, 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, Boolean clipToBounds, EqualityDelegate modelEqualityDelegate)

        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.
        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.
        clipToBounds - If true, clips the content to its bounds.
        modelEqualityDelegate - Determines the equality of model.
      • AsyncImage

        @Composable() final static Unit AsyncImage(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, Boolean clipToBounds, EqualityDelegate modelEqualityDelegate)

        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.
        clipToBounds - If true, clips the content to its bounds.
        modelEqualityDelegate - Determines the equality of model.