Package com.skydoves.landscapist
Class ImageLoad
-
- All Implemented Interfaces:
public final class ImageLoad
-
-
Field Summary
Fields Modifier and Type Field Description private final static ConstraintsZeroConstraints
-
Method Summary
Modifier and Type Method Description final ConstraintsgetZeroConstraints()final static <T extends Any> UnitImageLoad(T recomposeKey, SuspendFunction0<Flow<ImageLoadState>> executeImageRequest, Modifier modifier, ImageOptions imageOptions, Constrainable constrainable, Function2<BoxWithConstraintsScope, ImageLoadState, Unit> content)A common image loading model for fetching an image asynchronously and run composable for displaying the image. -
-
Method Detail
-
getZeroConstraints
final Constraints getZeroConstraints()
-
ImageLoad
final static <T extends Any> Unit ImageLoad(T recomposeKey, SuspendFunction0<Flow<ImageLoadState>> executeImageRequest, Modifier modifier, ImageOptions imageOptions, Constrainable constrainable, Function2<BoxWithConstraintsScope, 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.
-
-
-
-