Either an ImageRequest or the ImageRequest.data value.
diff --git a/api/coil-compose-base/coil.compose/remember-async-image-painter.html b/api/coil-compose-base/coil.compose/remember-async-image-painter.html index a3fff1f1c0..8d3da612b3 100644 --- a/api/coil-compose-base/coil.compose/remember-async-image-painter.html +++ b/api/coil-compose-base/coil.compose/remember-async-image-painter.html @@ -63,7 +63,7 @@
Return an AsyncImagePainter that executes an ImageRequest asynchronously and renders the result.
** This is a lower-level API than AsyncImage and may not work as expected in all situations. **
AsyncImagePainter will not finish loading if AsyncImagePainter.onDraw is not called. This can occur if a composable has an unbounded (i.e. Constraints.Infinity) width/height constraint. For example, to use AsyncImagePainter with LazyRow or LazyColumn, you must set a bounded width or height respectively using Modifier.width
or Modifier.height
.
AsyncImagePainter.state will not transition to State.Success synchronously during the composition phase. Use SubcomposeAsyncImage or set a custom ImageRequest.Builder.size value (e.g. size(Size.ORIGINAL)
) if you need this.
Either an ImageRequest or the ImageRequest.data value.
The ImageLoader that will be used to execute the request.
A Painter that is displayed while the image is loading.
A Painter that is displayed when the image request is unsuccessful.
A Painter that is displayed when the request's ImageRequest.data is null.
Called when the image request begins loading.
Called when the image request completes successfully.
Called when the image request completes unsuccessfully.
Sampling algorithm applied to a bitmap when it is scaled and drawn into the destination.
Return an AsyncImagePainter that executes an ImageRequest asynchronously and renders the result.
** This is a lower-level API than AsyncImage and may not work as expected in all situations. **
AsyncImagePainter will not finish loading if AsyncImagePainter.onDraw is not called. This can occur if a composable has an unbounded (i.e. Constraints.Infinity) width/height constraint. For example, to use AsyncImagePainter with LazyRow or LazyColumn, you must set a bounded width or height respectively using Modifier.width
or Modifier.height
.
AsyncImagePainter.state will not transition to State.Success synchronously during the composition phase. Use SubcomposeAsyncImage or set a custom ImageRequest.Builder.size value (e.g. size(Size.ORIGINAL)
) if you need this.
Either an ImageRequest or the ImageRequest.data value.
The ImageLoader that will be used to execute the request.
A callback to transform a new State before it's applied to the AsyncImagePainter. Typically this is used to overwrite the state's Painter.
Called when the state of this painter changes.
Sampling algorithm applied to a bitmap when it is scaled and drawn into the destination.
Return an AsyncImagePainter that executes an ImageRequest asynchronously and renders the result.
** This is a lower-level API than AsyncImage and may not work as expected in all situations. **
AsyncImagePainter will not finish loading if AsyncImagePainter.onDraw is not called. This can occur if a composable has an unbounded (i.e. Constraints.Infinity) width/height constraint. For example, to use AsyncImagePainter with LazyRow or LazyColumn, you must set a bounded width or height respectively using Modifier.width
or Modifier.height
.
AsyncImagePainter.state will not transition to State.Success synchronously during the composition phase. Use SubcomposeAsyncImage or set a custom ImageRequest.Builder.size value (e.g. size(Size.ORIGINAL)
) if you need this.
Either an ImageRequest or the ImageRequest.data value.
The ImageLoader that will be used to execute the request.
A Painter that is displayed while the image is loading.
A Painter that is displayed when the image request is unsuccessful.
A Painter that is displayed when the request's ImageRequest.data is null.
Called when the image request begins loading.
Called when the image request completes successfully.
Called when the image request completes unsuccessfully.
Sampling algorithm applied to a bitmap when it is scaled and drawn into the destination.
Return an AsyncImagePainter that executes an ImageRequest asynchronously and renders the result.
** This is a lower-level API than AsyncImage and may not work as expected in all situations. **
AsyncImagePainter will not finish loading if AsyncImagePainter.onDraw is not called. This can occur if a composable has an unbounded (i.e. Constraints.Infinity) width/height constraint. For example, to use AsyncImagePainter with LazyRow or LazyColumn, you must set a bounded width or height respectively using Modifier.width
or Modifier.height
.
AsyncImagePainter.state will not transition to State.Success synchronously during the composition phase. Use SubcomposeAsyncImage or set a custom ImageRequest.Builder.size value (e.g. size(Size.ORIGINAL)
) if you need this.
Either an ImageRequest or the ImageRequest.data value.
The ImageLoader that will be used to execute the request.
A callback to transform a new State before it's applied to the AsyncImagePainter. Typically this is used to overwrite the state's Painter.
Called when the state of this painter changes.
Sampling algorithm applied to a bitmap when it is scaled and drawn into the destination.