The Image Scanner SDK uses two decoding methods. Both methods throw QRCodeScannerSDKException. The failure reason is provided as an error code, and its values are defined in QRCodeScannerSDKErrorCodes.
Error code
Value
Meaning
INVALID_IMAGE
-4505
The image is null or could not be processed.
INVALID_CODE_TYPE
-4507
codeType is not QR_CODE, CRONTO_CODE, or both.
INVALID_IMAGE_FORMAT
-4508
The ImageProxy is neither YUV_420_888 nor RGBA_8888.
DEVICE_ARCHITECTURE_UNSUPPORTED
-4509
The native library could not be loaded on this device's architecture
If no code is found in the image, no exception is thrown; scannedImageData is null instead. For more information about decoding methods and functions, see Functions of the Image Scanner SDK.