SBSDKUIMRZScannerViewController
@interface SBSDKUIMRZScannerViewController : SBSDKUICameraViewController
A highly customizable camera-based view controller to detect machine readable zones.
-
Creates a new instance of ‘SBSDKUIMRZScannerViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter withConfiguration:(nonnull SBSDKUIMRZScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIMRZScannerViewControllerDelegate>)delegate;
Swift
class func present(on presenter: UIViewController, with configuration: SBSDKUIMRZScannerConfiguration, andDelegate delegate: SBSDKUIMRZScannerViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
configuration
The configuration to define look and feel of the new detection view controller.
delegate
The delegate of the new detection view controller.
Return Value
A new instance of ‘SBSDKUIMRZScannerViewController’.
-
Creates a new instance of ‘SBSDKUIMRZScannerViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUIMRZScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIMRZScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUIMRZScannerConfiguration, andDelegate delegate: SBSDKUIMRZScannerViewControllerDelegate?) -> Self
Parameters
configuration
The configuration to define look and feel of the new detection view controller.
delegate
The delegate of the new detection view controller.
Return Value
A new instance of ‘SBSDKUIMRZScannerViewController’.
-
Enables or disables the machine readable zones detection.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isRecognitionEnabled) BOOL recognitionEnabled;
Swift
var isRecognitionEnabled: Bool { get set }
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUIMRZScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUIMRZScannerViewControllerDelegate? { get set }