SaveTakenPictureUseCase

class SaveTakenPictureUseCase(draftPageFileStorage: DraftPageFileStorage)

Saves taken camera pictures in the in-memory repository

Constructors

Link copied to clipboard
constructor(draftPageFileStorage: DraftPageFileStorage)

Functions

Link copied to clipboard
fun saveTakenPicture(image: ByteArray, captureInfo: CaptureInfo, imageScale: Float, requiredAspectRatios: List<AspectRatio> = PageStorageProcessor.Configuration.DEFAULT().requiredAspectRatios, documentImageSizeLimit: PageStorageProcessor.Configuration.Size): <Error class: unknown class><Page>

Stores taken picture in DraftPageStorage throws IOException that need to be handled with catch {} in flow api