Protocols

The following protocols are available globally.

  • A delegate protocol to handle barcode results from SBSDKBarcodeScanAndCountViewController.

    See more

    Declaration

    Objective-C

    @protocol SBSDKBarcodeScanAndCountViewControllerDelegate <NSObject>

    Swift

    protocol SBSDKBarcodeScanAndCountViewControllerDelegate : NSObjectProtocol
  • A delegate protocol to customize the behavior, look and feel of the SBSDKBarcodeScannerViewControllerDelegate.

    See more

    Declaration

    Objective-C

    @protocol SBSDKBarcodeScannerViewControllerDelegate <NSObject>

    Swift

    protocol SBSDKBarcodeScannerViewControllerDelegate : NSObjectProtocol
  • A delegate protocol that gathers AVCaptureVideoDataOutputSampleBufferDelegate and AVCaptureMetadataOutputObjectsDelegate protocols.

    Declaration

    Objective-C

    @protocol
        SBSDKCameraSessionDelegate <AVCaptureVideoDataOutputSampleBufferDelegate,
                                    AVCaptureMetadataOutputObjectsDelegate>

    Swift

    protocol SBSDKCameraSessionDelegate : AVCaptureMetadataOutputObjectsDelegate, AVCaptureVideoDataOutputSampleBufferDelegate
  • The delegate protocol for the ‘SBSDKFinderView’ class.

    See more

    Declaration

    Objective-C

    @protocol SBSDKFinderViewDelegate <NSObject>

    Swift

    protocol SBSDKFinderViewDelegate : NSObjectProtocol
  • Protocol for an order-aware (array like) image storage.

    See more

    Declaration

    Objective-C

    @protocol SBSDKImageStoring <NSObject, NSCopying>

    Swift

    protocol SBSDKImageStoring : NSCopying, NSObjectProtocol
  • Protocol for implementing encryption and decryption of data.

    ScanbotSDK comes with a built-in AES encryptor that currently supports AES128 and AES256. If these algorithms are not meeting your requirements you can create and use your own encryption classes in ScanbotSDKs image storages by simply conforming to this protocol and implementing the two methods.

    See more

    Declaration

    Objective-C

    @protocol SBSDKStorageCrypting <NSObject>

    Swift

    protocol SBSDKStorageCrypting : NSObjectProtocol
  • Delegate protocol for ‘SBSDKUIBarcodeScannerViewController’.

    See more

    Declaration

    Objective-C

    @protocol
        SBSDKUIBarcodeScannerViewControllerDelegate <SBSDKUIViewControllerDelegate>

    Swift

    protocol SBSDKUIBarcodeScannerViewControllerDelegate : SBSDKUIViewControllerDelegate
  • Protocol for ‘SBSDKUIBarcodesBatchScannerViewController’ barcode results mapping.

    See more

    Declaration

    Objective-C

    @protocol SBSDKUIBarcodesBatchScannerMapping

    Swift

    protocol SBSDKUIBarcodesBatchScannerMapping
  • Delegate protocol for ‘SBSDKUIBarcodesBatchScannerViewController’.

    See more

    Declaration

    Objective-C

    @protocol SBSDKUIBarcodesBatchScannerViewControllerDelegate <
        SBSDKUIViewControllerDelegate>

    Swift

    protocol SBSDKUIBarcodesBatchScannerViewControllerDelegate : SBSDKUIViewControllerDelegate
  • General delegate protocol for SBSDKUViewController-based classes.

    See more

    Declaration

    Objective-C

    @protocol SBSDKUIViewControllerDelegate <NSObject>

    Swift

    protocol SBSDKUIViewControllerDelegate : NSObjectProtocol
  • The delegation protocol for the barcode tracking overlay controller.

    See more

    Declaration

    Swift

    @objc
    public protocol SBSDKBarcodeTrackingOverlayControllerDelegate
  • A protocol that defines the methods and properties required for a custom tracking view to be displayed over detected barcodes using the SBSDKBarcodeTrackingOverlayConfiguration. The custom view must conform to this protocol in order to be used as an overlay on top of the detected barcodes.

    See more

    Declaration

    Swift

    @objc
    public protocol SBSDKTrackedBarcodeInfoViewable