QrScanner
class QrScanner
This class represents a QR scanner that uses a QrBytesListener to handle scanned QR codes.
-
The listener for handling QR bytes.
Declaration
Swift
var qrListener: QrBytesListener
-
Declaration
Swift
init(listener: QrBytesListener)
-
This method is called when a QR code is successfully scanned. It invokes the execute method of the qrListener with the provided SensePrintInfo and QR bytes.
Declaration
Swift
func qrCodeScanned(data: SensePrintInfo, qrBytes: [UInt8])
-
This method is called to execute the clear data flow with the provided data dictionary. It invokes the naviageToClearData method of the qrListener.
Declaration
Swift
func executeClearData(data: [String : String])
-
This method is called to show an error message indicating that the scanned QR code is invalid. It invokes the showInvalidQr method of the qrListener.
Declaration
Swift
func showInvalidQr()
-
This method is called to show an error message indicating that the license has expired. It invokes the showLicenseExpired method of the qrListener.
Declaration
Swift
func showLicenseExpired()
-
This method is called to show an error message indicating that the app cannot connect to the home server. It invokes the showCannotConnectToHomeServer method of the qrListener.
Declaration
Swift
func showCannotConnectToHomeServer()
-
This method is called to show an error message indicating that the number of available instances has been exceeded. It invokes the noOfAvlInstanceExceed method of the qrListener.
Declaration
Swift
func noOfAvlInstanceExceed()
-
This method is called to show an error message indicating that the generation limit has been exceeded. It invokes the ShowGenrationExceed method of the qrListener.
Declaration
Swift
func ShowGenrationExceed()
-
This method is called to show an error message indicating that the verification limit has been exceeded. It invokes the showVerificationExceed method of the qrListener.
Declaration
Swift
func showVerificationExceed()
-
This method is called to show an error message indicating that the signature verification has failed. It invokes the showSignatureVerificationFailed method of the qrListener.
Declaration
Swift
func showSignatureVerificationFailed()
-
This method is called to show an error message indicating a network error. It invokes the networkError method of the qrListener.
Declaration
Swift
func networkError()