MBBlinkDelegate
@objc
public protocol MBBlinkDelegate : AnyObject
BlinkIDUI delegate protocol
Implement this protocol to be able to recieve the events from the MBBlinkIDUI
instance
-
Function called everytime scanning is started: - front side scanning started. - back side scanning started. - any side scanning started.
Declaration
Swift
@objc optional func didStartScanning(withState state: MBScanState)
Parameters
state
current state that the scanning started
-
Event that reports that the scanning of the whole document: - both front and back side - any side was successfuly scanned.
Declaration
Swift
@objc func didScanEntireDocument(recognitionResult: MBRecognitionResult, successFrame: UIImage?)
Parameters
recognitionResult
recognition results obtained through scanning
successFrame
if success or all frame retrieval was turned on success frame image is returned(camera frame containing the document)
-
Event that reports that the scanning of the front side of the document was successfuly scanned.
Declaration
Swift
@objc func didScanFirstSide(recognitionResult: MBRecognitionResult, successFrame: UIImage?)
Parameters
recognitionResult
recognition results obtained through scanning
successFrame
if success or all frame retrieval was turned on success frame image is returned(camera frame containing the document)
-
Event that reports that new document was selected for scanning and for what country is this document
Declaration
Swift
@objc optional func didChangeDocument(newDocument: MBDocumentProvider, forCountry country: MBCountry)
Parameters
newDocument
document provider
forCountry
country
-
Event called when user presses the X to close scaning button if it’s available.
Declaration
Swift
@objc optional func didTapCancelButton()