MBBlinkIDUI
@objc
public class MBBlinkIDUI : NSObject
Main container class, contains both MBBlinkIdOverlayViewController
and MBScanningProvider
.
MBBlinkIdOverlayViewController
is used as the UI part of BlinkIDUI, while MBScanningProvider
is the part
handling scanning logic.
To start scanning create an instance of MBBlinkIDUI and set it’s delegate.
Warning
Hold the reference to your instance ofMBBlinkIDUI
because it holds the reference to MBScanningProvider
and MBBlinkIdOverlayViewController
. If you lose the reference to it, scanning might work but you won’t recieve the events.
-
Delegate used to send events made during scanning/ui interaction
Declaration
Swift
@objc public weak var delegate: MBBlinkDelegate?
-
Property that contains the camera preview layer with the overlay(the UI) Present this to start the scanning process.
Declaration
Swift
@objc public var recognizerRunnerViewController: (UIViewController & MBRecognizerRunnerViewController)
-
Intializes the
MBBlinkIdOerlayViewController
andMBScanningProvider
with the settings that were set throughMBBlinkSettings
.Warning
Make sure to setup your settings inMBBlinkSettings
and colors/fonts inUIColor
andUIFont
(properties have a prefix ‘mb_’) before creating MBBlinkIDUI instance.Declaration
Swift
@objc public override init()
-
Restarts scanning
Declaration
Swift
@objc public func restartScanning()
-
Pauses scanning
Declaration
Swift
@objc public func pauseScanning()
-
Resumes scanning
Declaration
Swift
@objc public func resumeScanning()