SBSDKMultipleObjectScannerViewControllerDelegate
@protocol SBSDKMultipleObjectScannerViewControllerDelegate <NSObject>
The delegate protocol for SBSDKMultipleObjectScannerViewController.
-
Asks the delegate whether to detect on the next video frame or not. Return NO if you don’t want detection on video frames, e.g. when a view controller is presented modally or when your view controller’s view currently is not in the view hierarchy.
Declaration
Objective-C
- (BOOL)scannerControllerShouldAnalyseVideoFrame: (nonnull SBSDKMultipleObjectScannerViewController *)controller;
Swift
optional func scannerControllerShouldAnalyseVideoFrame(_ controller: SBSDKMultipleObjectScannerViewController) -> Bool
Parameters
controller
The calling SBSDKMultipleObjectScannerViewController.
Return Value
YES if the video frame should be analyzed, NO otherwise.
-
Tells the delegate that a still image is about to be captured. Here you can change the appearance of you custom shutter button or HUD to reflect in the UI that we are now busy taking an image.
Declaration
Objective-C
- (void)scannerControllerWillCaptureImage: (nonnull SBSDKMultipleObjectScannerViewController *)controller;
Swift
optional func scannerControllerWillCaptureImage(_ controller: SBSDKMultipleObjectScannerViewController)
Parameters
controller
The calling SBSDKMultipleObjectScannerViewController.
-
Tells the delegate that a still image has been captured and its orientation has been corrected. Optional.
Declaration
Objective-C
- (void)scannerController: (nonnull SBSDKMultipleObjectScannerViewController *)controller didCaptureOriginalImage:(nonnull UIImage *)originalImage;
Swift
optional func scannerController(_ controller: SBSDKMultipleObjectScannerViewController, didCaptureOriginalImage originalImage: UIImage)
Parameters
controller
The calling SBSDKMultipleObjectScannerViewController.
originalImage
The whole captured image.
-
Tells the delegate that object images have been captured and placed into the image storage. Optional.
Declaration
Objective-C
- (void)scannerController: (nonnull SBSDKMultipleObjectScannerViewController *)controller didCaptureObjectImagesInStorage:(nonnull id<SBSDKImageStoring>)imageStorage;
Swift
optional func scannerController(_ controller: SBSDKMultipleObjectScannerViewController, didCaptureObjectImagesInStorage imageStorage: SBSDKImageStoring)
Parameters
controller
The calling SBSDKMultipleObjectScannerViewController.
imageStorage
The image storage containing the captured object images.
-
Asks the delegate for custom shutter release button. Optional.
Declaration
Objective-C
- (nullable UIButton *)scannerControllerCustomShutterButton: (nonnull SBSDKMultipleObjectScannerViewController *)controller;
Swift
optional func scannerControllerCustomShutterButton(_ controller: SBSDKMultipleObjectScannerViewController) -> UIButton?
Parameters
controller
The calling SBSDKMultipleObjectScannerViewController.
Return Value
An instance of your custom shutter release button. Target and action are set automatically by controller. If you return nil, the built-in standard button is used.