-
@Stable() public interface ImageCropperState holder for the image cropper. Allows starting new crop sessions as well as getting the state of the pending crop.
-
-
Method Summary
Modifier and Type Method Description abstract CropResultcrop(IntSize maxResultSize, SuspendFunction0<ImageSrc> createSrc)Initiates a new crop session, cancelling the current one, if any. abstract CropStategetCropState()The pending crop state, if any abstract CropperLoadinggetLoadingStatus()-
-
Method Detail
-
crop
abstract CropResult crop(IntSize maxResultSize, SuspendFunction0<ImageSrc> createSrc)
Initiates a new crop session, cancelling the current one, if any. Suspends until a result is available (cancellation, error, success) and returns it. The resulting image will be scaled down to fit maxResultSize (if provided). createSrc will be used to construct an ImageSrc instance.
-
getCropState
abstract CropState getCropState()
The pending crop state, if any
-
getLoadingStatus
abstract CropperLoading getLoadingStatus()
-
-
-
-