SBSDKUIVINScannerViewController
@interface SBSDKUIVINScannerViewController : SBSDKUICameraViewController
A highly customizable camera-based view controller to scan and validate a vehicle identification number in realtime. A view finder like rectangle shows the area where the vehicle identification number is scanned. The camera is zoomed in and out automatically. Once some vehicle identification number is scanned within the view finder area the result is delivered to the receivers delegate.
-
Creates a new instance of ‘SBSDKUIVINScannerViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter configuration:(nonnull SBSDKUIVINScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIVINScannerViewControllerDelegate>)delegate;
Swift
class func present(on presenter: UIViewController, configuration: SBSDKUIVINScannerConfiguration, andDelegate delegate: SBSDKUIVINScannerViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
configuration
The configuration to define look and feel of the new scanner view controller.
delegate
The delegate of the new scanner view controller.
Return Value
A new instance of ‘SBSDKUIVINScannerViewController’.
-
Creates a new instance of ‘SBSDKUIVINScannerViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUIVINScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIVINScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUIVINScannerConfiguration, andDelegate delegate: SBSDKUIVINScannerViewControllerDelegate?) -> Self
Parameters
configuration
The configuration to define look and feel of the new scanner view controller.
delegate
The delegate of the new scanner view controller.
Return Value
A new instance of ‘SBSDKUIVINScannerViewController’.
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUIVINScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUIVINScannerViewControllerDelegate? { get set }
-
Enables or disables the scanning.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isRecognitionEnabled) BOOL recognitionEnabled;
Swift
var isRecognitionEnabled: Bool { get set }