GeniusScanSDK

Properties

Link copied to clipboard

Logger used by the SDK. Default implementation logs to the Android console.

Functions

Link copied to clipboard

Check if the SDK is correctly initialized.

Link copied to clipboard
fun rotateImage(imageToRotatePath: String, rotatedImagePath: String, angle: RotationAngle, isBinary: Boolean = false)

Rotate an image.

Link copied to clipboard
fun scaleImage(inPath: String, outPath: String, scalingRatio: Float)

Create a new scaled image.

fun scaleImage(inPath: String, outPath: String, maxImageSize: Int)

Scale image so that both dimensions fit inside given size.

Link copied to clipboard
fun setJPGQuality(jpgQuality: Int)

Sets the JPG quality used to write images

Link copied to clipboard
fun setLicenseKey(context: Context, licenseKey: String)
fun setLicenseKey(context: Context, licenseKey: String, autoRefresh: Boolean)

Set the Genius Scan SDK license key with optional auto-refresh.