SBSDKUIGenericDocumentRecognizerViewControllerDelegate
@protocol SBSDKUIGenericDocumentRecognizerViewControllerDelegate <
SBSDKUIViewControllerDelegate>
Delegate protocol for ‘SBSDKUIGenericDocumentRecognizerViewController’.
-
Informs the delegate that one or multiple generic documents have been recognized and the view controller has been dismissed.
Declaration
Objective-C
- (void) genericDocumentRecognizerViewController: (nonnull SBSDKUIGenericDocumentRecognizerViewController *)viewController didFinishWithDocuments: (nonnull NSArray<SBSDKGenericDocument *> *)documents;
Swift
func genericDocumentRecognizerViewController(_ viewController: SBSDKUIGenericDocumentRecognizerViewController, didFinishWith documents: [SBSDKGenericDocument])
Parameters
viewController
The view controller that recognized the documents.
documents
An array of recognized generic documents.
-
Optional: informs the delegate that the ‘SBSDKUIGenericDocumentRecognizerViewController’ has been cancelled and dismissed.
Declaration
Objective-C
- (void)genericDocumentRecognizerViewControllerDidCancel: (nonnull SBSDKUIGenericDocumentRecognizerViewController *)viewController;
Swift
optional func genericDocumentRecognizerViewControllerDidCancel(_ viewController: SBSDKUIGenericDocumentRecognizerViewController)
Parameters
viewController
The ‘SBSDKUIGenericDocumentRecognizerViewController’ that did dismiss.