SBSDKVINScannerViewControllerDelegate
@protocol SBSDKVINScannerViewControllerDelegate <NSObject>
The delegation protocol for ‘SBSDKVINScannerViewController’.
-
Informs the delegate that a Vehicle Identification Number has been scanned and validated and passes the result.
Declaration
Objective-C
- (void) vinScannerViewController:(nonnull SBSDKVINScannerViewController *)controller didScanValidResult: (nonnull SBSDKVehicleIdentificationNumberScannerResult *)result;
Swift
func vinScannerViewController(_ controller: SBSDKVINScannerViewController, didScanValidResult result: SBSDKVehicleIdentificationNumberScannerResult)
Parameters
controller
The SBSDKVINScannerViewController that has scanned and validated the Vehicle Identification Number.
result
The result of the scan.
-
Asks the delegate whether the next video frame should be scanned or not. Optional. Use to skip frames or pause scanning for a while.
Declaration
Objective-C
- (BOOL)vinScannerViewControllerShouldDetect: (nonnull SBSDKVINScannerViewController *)controller;
Swift
optional func vinScannerViewControllerShouldDetect(_ controller: SBSDKVINScannerViewController) -> Bool
Parameters
controller
The SBSDKVINScannerViewController that wants to scan the video frame.
Return Value
YES, if you want to scan the next video frame, NO otherwise.