-
- All Implemented Interfaces:
public final class ImageLoad
-
-
Method Summary
Modifier and Type Method Description final static <T extends Any> UnitImageLoad(T recomposeKey, SuspendFunction0<Flow<ImageLoadState>> executeImageRequest, Modifier modifier, Function2<BoxScope, ImageLoadState, Unit> content)A common image loading model for fetching an image asynchronously and run composable for displaying the image. -
-
Method Detail
-
ImageLoad
final static <T extends Any> Unit ImageLoad(T recomposeKey, SuspendFunction0<Flow<ImageLoadState>> executeImageRequest, Modifier modifier, Function2<BoxScope, ImageLoadState, Unit> content)
A common image loading model for fetching an image asynchronously and run composable for displaying the image.
- Parameters:
recomposeKey- request to execute image loading asynchronously.executeImageRequest- suspending lambda to execute an image loading request.modifier- adjust the drawing image layout or drawing decoration of the content.content- the image content to be loaded from executing for given states.
-
-
-
-