The Image Scanner SDK facilitates the Digipass application development: it provides you with the image scanning functionality to capture QR codes and Cronto images. The Image Scanner SDK package includes the following:
MSSImageScanner.xcframework for iOS
QRCodeScannerSDK.aar for Android
The Image Scanner SDK can be used on a variety of devices and supports the following platforms:
Android devices:
Minimum Android 7 (API level 24)
Target Android 16 (API level 36)
The Image Scanner SDK does not support some Doogee devices.
iOS devices:
iOS 16 and later
Swift 5 and later
Xcode 16 and later
Image Requirements
The Image Scanner SDK requires the target image to meet the following requirements:
The image containing the QR code must be clear and well-focused.
The QR code should be in the center of the image.
The photo should not be taken too closely.
The maximum width and height is 2048 pixels (applies to iOS only).
Inverted QR codes are not supported, i.e. when a QR code with a black or dark background and white QR modules is scanned from an app, the SDK does not detect the QR code. Only QR codes with white backgrounds and black QR modules are correctly scanned.
Exposed APIs and functions of the SDK
For Android, the Image Scanner SDK APIs are exposed in the com.vasco.digipass.sdk.utils.qrcodescanner package.
The SDK includes the following main functions:
Bitmap decoding (Android only)
Image decoding
Obtain decoding results
Display the scan result (iOS only)
Cancel the scan process (iOS only)
Exception (iOS only)
For detailed information about the APIs and SDK functions, refer to the technical documentation included in the product package.
Exception Management on Android
When an error occurs on Android, a QRCodeScannerSDKException is thrown. This exception consists of an error code and, if the exception is an internal error, the cause of the exception.