CropHandler Interface
interface CropHandler
Deprecated.
Use Compose instead.
What a crop screen needs from its host, and where it reports the user’s edits.
Implement it on your view model and attach it with CropFragment.setHandler.
Properties
cutout
abstract val cutout: Flow<ScanCutout?>
The document outline the crop screen shows and the user edits.
orientation
abstract val orientation: Flow<ScanOrientation?>
The orientation the page is displayed at.
picture
abstract val picture: Flow<ScanPicture?>
The page to show for cropping.
Functions
onCutoutChanged
abstract fun onCutoutChanged(cutout: ScanCutout?)
Called whenever the displayed outline changes, so the host can store it.
onPictureReady
abstract fun onPictureReady(pictureReady: Boolean)
Called once the page is on screen and ready to crop.