SBSDKUIFinderDocumentScannerViewController
@interface SBSDKUIFinderDocumentScannerViewController
: SBSDKUICameraViewController
A highly customizable camera-based view controller to scan a single documents of a certain aspect ratio. An edge-detection based algorithm finds documents in the camera stream within the view finder. A manual or automatic high resolution snapshot can be made. Based on the detected area of the document in the photo, the photo is cropped and perspective-corrected, so that a nice flattened image of the document only is created.
-
Creates a new instance of ‘SBSDKUIFinderDocumentScannerViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter withDocument:(nullable SBSDKUIDocument *)document withConfiguration: (nonnull SBSDKUIFinderDocumentScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIFinderDocumentScannerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, with document: SBSDKUIDocument?, with configuration: SBSDKUIFinderDocumentScannerConfiguration, andDelegate delegate: SBSDKUIFinderDocumentScannerViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
document
The document to which the scanned pages 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 ‘SBSDKUIFinderDocumentScannerViewController’.
-
Creates a new instance of ‘SBSDKUIFinderDocumentScannerViewController’ and presents it modally. Creates a new ‘SBSDKUIDocument’ instance.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter withConfiguration: (nonnull SBSDKUIFinderDocumentScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIFinderDocumentScannerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, with configuration: SBSDKUIFinderDocumentScannerConfiguration, andDelegate delegate: SBSDKUIFinderDocumentScannerViewControllerDelegate?) -> 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 ‘SBSDKUIFinderDocumentScannerViewController’.
-
Creates a new instance of ‘SBSDKUIFinderDocumentScannerViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithDocument:(nullable SBSDKUIDocument *)document configuration:(nonnull SBSDKUIFinderDocumentScannerConfiguration *) configuration andDelegate: (nullable id<SBSDKUIFinderDocumentScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with document: SBSDKUIDocument?, configuration: SBSDKUIFinderDocumentScannerConfiguration, andDelegate delegate: SBSDKUIFinderDocumentScannerViewControllerDelegate?) -> Self
Parameters
document
The document to which the scanned pages 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 ‘SBSDKUIFinderDocumentScannerViewController’.
-
Creates a new instance of ‘SBSDKUIFinderDocumentScannerViewController’. Generates a new instance of ‘SBSDKUIDocument’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUIFinderDocumentScannerConfiguration *)configuration andDelegate: (nullable id< SBSDKUIFinderDocumentScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUIFinderDocumentScannerConfiguration, andDelegate delegate: SBSDKUIFinderDocumentScannerViewControllerDelegate?) -> 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 ‘SBSDKUIFinderDocumentScannerViewController’.
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUIFinderDocumentScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUIFinderDocumentScannerViewControllerDelegate? { get set }