SBSDKGenericTextLineRecognizerViewController
@interface SBSDKGenericTextLineRecognizerViewController
: SBSDKBaseScannerViewController
A UIViewController subclass to show a camera screen with the text line recognizer. A view finder like rectangle shows the area where text is recognized. The camera can be zoomed in and out using an action or a double-tap to make aiming at the desired area easier. Once some text is recognized within the view finder area, the result is delivered to the receivers delegate. A customizable validation routine checks validates the result and sets a flag in the result.
-
The receivers configuration object.
Declaration
Objective-C
@property (nonatomic, strong) SBSDKGenericTextLineRecognizerConfiguration *_Nonnull configuration;
Swift
var configuration: SBSDKGenericTextLineRecognizerConfiguration { get set }
-
The receivers delegate object. It is captured as a weak property.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKGenericTextLineRecognizerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKGenericTextLineRecognizerViewControllerDelegate? { get set }
-
If word boxes should be shown. Default is YES.
Declaration
Objective-C
@property (nonatomic) BOOL shouldShowWordBoxes;
Swift
var shouldShowWordBoxes: Bool { get set }
-
The color of word boxes filling. It is better to use colors with alpha < 0.5.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) UIColor *wordBoxesFillColor;
Swift
var wordBoxesFillColor: UIColor { get set }
-
The color of word boxes border lines.
Declaration
Objective-C
@property (nonatomic, strong, nonnull) UIColor *wordBoxesLineColor;
Swift
var wordBoxesLineColor: UIColor { get set }
-
Creates a new instance of SBSDKGenericTextLineRecognizerViewController.
Declaration
Objective-C
- (nullable instancetype) initWithConfiguration: (nullable SBSDKGenericTextLineRecognizerConfiguration *)configuration delegate: (nullable id< SBSDKGenericTextLineRecognizerViewControllerDelegate>) delegate;
Swift
init?(configuration: SBSDKGenericTextLineRecognizerConfiguration?, delegate: SBSDKGenericTextLineRecognizerViewControllerDelegate?)
Parameters
configuration
The configuration object to configure the receiver. If nil, the default configuration is used.
delegate
The delegate of the receiver.
-
Installs the receiver as child view controller onto the parent view controllers view using its entire bounds area.
Declaration
Objective-C
- (nullable instancetype) initWithParentViewController: (nonnull UIViewController *)parentViewController parentView:(nonnull UIView *)parentView configuration: (nullable SBSDKGenericTextLineRecognizerConfiguration *) configuration delegate: (nullable id< SBSDKGenericTextLineRecognizerViewControllerDelegate>) delegate;
Swift
init?(parentViewController: UIViewController, parentView: UIView, configuration: SBSDKGenericTextLineRecognizerConfiguration?, delegate: SBSDKGenericTextLineRecognizerViewControllerDelegate?)
Parameters
parentViewController
The view controller the newly created instance is embedded into.
parentView
The view the newly created instance is embedded into.
configuration
The configuration object to configure the receiver. If nil, the default configuration is used.
delegate
The delegate of the receiver.