SBSDKUIMultipleObjectScannerViewController
@interface SBSDKUIMultipleObjectScannerViewController
: SBSDKUICameraViewController
A highly customizable camera-based view controller to scan multiple objects.
-
Creates a new instance of
SBSDKUIMultipleObjectScannerViewController
and presents it modally.Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter withConfiguration: (nonnull SBSDKUIMultipleObjectScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIMultipleObjectScannerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, with configuration: SBSDKUIMultipleObjectScannerConfiguration, andDelegate delegate: SBSDKUIMultipleObjectScannerViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
configuration
The configuration to define look and feel of the new scanning view controller.
delegate
The delegate of the new scanning view controller.
Return Value
A new instance of
SBSDKUIMultipleObjectScannerViewController
. -
Creates a new instance of
SBSDKUIMultipleObjectScannerViewController
. Generates a new instance ofSBSDKUIDocument
.Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUIMultipleObjectScannerConfiguration *)configuration andDelegate: (nullable id< SBSDKUIMultipleObjectScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUIMultipleObjectScannerConfiguration, andDelegate delegate: SBSDKUIMultipleObjectScannerViewControllerDelegate?) -> Self
Parameters
configuration
The configuration to define look and feel of the new scanning view controller.
delegate
The delegate of the new scanning view controller.
Return Value
A new instance of
SBSDKUIMultipleObjectScannerViewController
. -
Creates a new instance of
SBSDKUIMultipleObjectScannerConfiguration
and presents it modally.Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter withDocument:(nullable SBSDKUIDocument *)document withConfiguration: (nonnull SBSDKUIMultipleObjectScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIMultipleObjectScannerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, with document: SBSDKUIDocument?, with configuration: SBSDKUIMultipleObjectScannerConfiguration, andDelegate delegate: SBSDKUIMultipleObjectScannerViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
document
The document to which the scanned objects will be added. If nil the receiver creates a new document.
configuration
The configuration to define look and feel of the new scanning view controller.
delegate
The delegate of the new scanning view controller.
Return Value
A new instance of
SBSDKUIMultipleObjectScannerConfiguration
. -
Creates a new instance of
SBSDKUIMultipleObjectScannerConfiguration
.Declaration
Objective-C
+ (nonnull instancetype) createNewWithDocument:(nullable SBSDKUIDocument *)document configuration:(nonnull SBSDKUIMultipleObjectScannerConfiguration *) configuration andDelegate: (nullable id<SBSDKUIMultipleObjectScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with document: SBSDKUIDocument?, configuration: SBSDKUIMultipleObjectScannerConfiguration, andDelegate delegate: SBSDKUIMultipleObjectScannerViewControllerDelegate?) -> Self
Parameters
document
The document to which the scanned objects will be added. If nil the receiver creates a new document.
configuration
The configuration to define look and feel of the new scanning view controller.
delegate
The delegate of the new scanning view controller.
Return Value
A new instance of
SBSDKUIMultipleObjectScannerConfiguration
. -
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUIMultipleObjectScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUIMultipleObjectScannerViewControllerDelegate? { get set }