stashPicture Function
@JvmStatic fun stashPicture(context: Context, picture: ScanPicture, autoDelete: Boolean = false): Uri
Deprecated.
Superseded by ScanPicture.write(), which writes wherever you choose rather than to a cache file. Still functional; scheduled for removal in the next major version.
Replace with
ScanPicture.write()
Writes a page to a cache file and returns a URI for it.
Return
Uri to stashed picture
Parameters
- context — Android’s Context
- picture — ScanPicture to stash
- autoDelete — mark file as delete after exit
@JvmStatic fun stashPicture(picture: ScanPicture, file: File): Uri
Deprecated.
Superseded by ScanPicture.write(), which writes wherever you choose rather than to a cache file. Still functional; scheduled for removal in the next major version.
Replace with
ScanPicture.write()
Writes a page to a file you choose and returns a URI for it.
Return
Uri to stashed picture
Parameters
- picture — ScanPicture to stash
- file — stash location