Package-level declarations Package
The cutout-editing screen: a fragment where the user adjusts the detected outline, and the contract its host implements.
Types
CropFragment
class CropFragment : Fragment
This androidx.fragment.app.Fragment can show a picture and manage document’s cutout.
CropHandler
interface CropHandler
What a crop screen needs from its host, and where it reports the user’s edits.
Properties
cropCutoutCorners
var SemanticsPropertyReceiver.cropCutoutCorners: List<Offset>
Publishes the crop surface’s current corner-handle positions under CropCutoutCornersKey.
CropCutoutCornersKey
val CropCutoutCornersKey: SemanticsPropertyKey<List<Offset>>
Semantics key publishing where CropPicture’s corner handles are currently drawn, so that a UI test can aim a gesture at one.
Functions
CropPicture
@Composable fun CropPicture(modifier: Modifier, picture: ScanPicture?, orientation: ScanOrientation? = null, cutout: ScanCutout? = null, params: CropImageParams = defaultCropImageParams( defaultZoomImageParams( PaddingValues(40.dp) ) ), onPictureReady: suspend (Boolean) -> Unit = { _ -> }, onCutoutChanged: (ScanCutout?) -> Unit)
A Composable to show a picture and edit a document cutout.