SBSDKVINScannerViewController
@interface SBSDKVINScannerViewController : SBSDKBaseScannerViewController
A UIViewController subclass to show a camera screen with the vehicle identification number scanner. A view finder like rectangle shows the area where vehicle identification number is detected. The camera can be zoomed in and out using an action or a double-tap to make aiming at the desired area easier. Once some number is detected within the view finder area, the result is delivered to the receivers delegate. A customizable validation routine checks validates the result and sets a flag in the result.
-
The receivers configuration object.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) SBSDKVehicleIdentificationNumberScannerConfiguration *configuration;
Swift
var configuration: SBSDKVehicleIdentificationNumberScannerConfiguration { get set }
-
The receivers delegate object. It is captured as a weak property.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKVINScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKVINScannerViewControllerDelegate? { get set }
-
Creates a new instance of SBSDKVINScannerViewControllerDelegate.
Declaration
Objective-C
- (nullable instancetype) initWithConfiguration: (nullable SBSDKVehicleIdentificationNumberScannerConfiguration *) configuration delegate:(nullable id<SBSDKVINScannerViewControllerDelegate>) delegate;
Swift
init?(configuration: SBSDKVehicleIdentificationNumberScannerConfiguration?, delegate: SBSDKVINScannerViewControllerDelegate?)
Parameters
configuration
The configuration object to configure the receiver. If nil, the default configuration is used.
delegate
The delegate of the receiver.
-
Installs the receiver as child view controller onto the parent view controllers view using its entire bounds area.
Declaration
Objective-C
- (nullable instancetype) initWithParentViewController: (nonnull UIViewController *)parentViewController parentView:(nonnull UIView *)parentView configuration: (nonnull SBSDKVehicleIdentificationNumberScannerConfiguration *)configuration delegate: (nullable id<SBSDKVINScannerViewControllerDelegate>) delegate;
Swift
init?(parentViewController: UIViewController, parentView: UIView, configuration: SBSDKVehicleIdentificationNumberScannerConfiguration, delegate: SBSDKVINScannerViewControllerDelegate?)
Parameters
parentViewController
The view controller the newly created instance is embedded into.
parentView
The view the newly created instance is embedded into.
configuration
The configuration object to configure the receiver.
delegate
The delegate of the receiver.