SBSDKUITextDataScannerViewController
@interface SBSDKUITextDataScannerViewController : SBSDKUICameraViewController
A highly customizable camera-based view controller to recognize and validate a small rectangular text area in realtime. A view finder like rectangle shows the area where text is recognized. The camera is zoomed in and out automatically. Once some text is recognized within the view finder area the result is delivered to the receivers delegate.
-
Creates a new instance of ‘SBSDKUITextDataScannerViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter configuration:(nonnull SBSDKUITextDataScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUITextDataScannerViewControllerDelegate>)delegate;
Swift
class func present(on presenter: UIViewController, configuration: SBSDKUITextDataScannerConfiguration, andDelegate delegate: SBSDKUITextDataScannerViewControllerDelegate?) -> 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 ‘SBSDKUITextDataScannerViewController’.
-
Creates a new instance of ‘SBSDKUITextDataScannerViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUITextDataScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUITextDataScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUITextDataScannerConfiguration, andDelegate delegate: SBSDKUITextDataScannerViewControllerDelegate?) -> 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 ‘SBSDKUITextDataScannerViewController’.
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUITextDataScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUITextDataScannerViewControllerDelegate? { get set }
-
Enables or disables the recognition.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isRecognitionEnabled) BOOL recognitionEnabled;
Swift
var isRecognitionEnabled: Bool { get set }