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 }
-
Not available.
Declaration
Objective-C
- (nonnull instancetype)init;
-
Not available.
Declaration
Objective-C
+ (nonnull instancetype)new;
-
Designated initializer. Creates a new instance of SBSDKGenericTextLineRecognizerViewController and embeds it into an existing viewcontroller/view hierarchy if needed.
Declaration
Objective-C
- (nullable instancetype) initWithParentViewController: (nullable UIViewController *)parentViewController parentView:(nullable UIView *)containerView configuration: (nullable SBSDKGenericTextLineRecognizerConfiguration *) configuration delegate: (nonnull id< SBSDKGenericTextLineRecognizerViewControllerDelegate>) delegate;
Swift
init?(parentViewController: UIViewController?, parentView containerView: UIView?, configuration: SBSDKGenericTextLineRecognizerConfiguration?, delegate: SBSDKGenericTextLineRecognizerViewControllerDelegate)
Parameters
parentViewController
The view controller the newly created instance is embedded into.
containerView
The view the newly created instance is embedded into. If nil the parentViewControllers view is used.
configuration
The configuration object to configure the receiver. If nil, the default configuration is used.
delegate
The delegate of the receiver.