SBSDKUIGenericDocumentRecognizerViewController
@interface SBSDKUIGenericDocumentRecognizerViewController
: SBSDKUICameraViewController
A highly customizable camera-based view controller to recognize generic documents.
-
Creates a new instance of ‘SBSDKUIGenericDocumentRecognizerViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter configuration: (nonnull SBSDKUIGenericDocumentRecognizerConfiguration *)configuration andDelegate: (nullable id<SBSDKUIGenericDocumentRecognizerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, configuration: SBSDKUIGenericDocumentRecognizerConfiguration, andDelegate delegate: SBSDKUIGenericDocumentRecognizerViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
configuration
The configuration to define look and feel of the new detection view controller.
delegate
The delegate of the new detection view controller.
Return Value
A new instance of ‘SBSDKUIGenericDocumentRecognizerViewController’.
-
Creates a new instance of ‘SBSDKUIGenericDocumentRecognizerViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUIGenericDocumentRecognizerConfiguration *)configuration andDelegate: (nullable id< SBSDKUIGenericDocumentRecognizerViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUIGenericDocumentRecognizerConfiguration, andDelegate delegate: SBSDKUIGenericDocumentRecognizerViewControllerDelegate?) -> Self
Parameters
configuration
The configuration to define look and feel of the new detection view controller.
delegate
The delegate of the new detection view controller.
Return Value
A new instance of ‘SBSDKUIGenericDocumentRecognizerViewController’.
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUIGenericDocumentRecognizerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUIGenericDocumentRecognizerViewControllerDelegate? { get set }