MSSImageScanner 4.29.0
The MSSImageScanner SDK provides a library to scan QR codes and CrontoSign images
Loading...
Searching...
No Matches
<ScannerDelegate> Protocol Reference

#import <QRCodeScannerSDKScannerDelegate.h>

Instance Methods

(void) - qrCodeScannerSDKController:didScan:codeType:
 
(void) - qrCodeScannerSDKControllerDidCancel:
 
(void) - qrCodeScannerSDKController:didReceive:
 

Detailed Description

Protocol definition to manage callback for result scanned, canceling and receive errors

Method Documentation

◆ qrCodeScannerSDKController:didReceive:

- (void) qrCodeScannerSDKController: (UIViewController *)  controller
didReceive: (NSError *)  error 

Protocol ScannerDelegate method called when error has occured

Parameters
controllerAn object pointer to current QRCodeScannerSDKViewController sender
errorpointer to a NSError object. This object will be filled in case an error happened. The error can contain one of the following error codes (see QRCodeScannerSDKErrorCodes.h):
  • QRCodeScannerSDKErrorCodes_INTERNAL_ERROR if an internal error occurs.

◆ qrCodeScannerSDKController:didScan:codeType:

- (void) qrCodeScannerSDKController: (UIViewController *)  controller
didScan: (NSString *)  result
codeType: (CodeType)  codeType 

Protocol ScannerDelegate method called when result is decoded

Parameters
controllerAn object pointer to current QRCodeScannerSDKViewController sender
resultThe string decoded as NSString *
codeTypeThe type of image scanned. Could be

◆ qrCodeScannerSDKControllerDidCancel:

- (void) qrCodeScannerSDKControllerDidCancel: (UIViewController *)  controller

Protocol ScannerDelegate method called when the user touch on cancel button.

Parameters
controllerAn object pointer to current QRCodeScannerSDKViewController sender

The documentation for this protocol was generated from the following file: