SBSDKUILicensePlateScannerViewController
@interface SBSDKUILicensePlateScannerViewController
: SBSDKUICameraViewController
A highly customizable camera-based view controller to scan vehicle license plates in realtime. A view finder like rectangle shows the area where the license plate is recognized. Once a license plate has been recognized within the view finder area the result is delivered to the receivers delegate.
-
Creates a new instance of ‘SBSDKUILicensePlateScannerViewController’ and presents it modally.
Declaration
Objective-C
+ (nonnull instancetype) presentOn:(nonnull UIViewController *)presenter configuration: (nonnull SBSDKUILicensePlateScannerConfiguration *)configuration andDelegate: (nullable id<SBSDKUILicensePlateScannerViewControllerDelegate>) delegate;
Swift
class func present(on presenter: UIViewController, configuration: SBSDKUILicensePlateScannerConfiguration, andDelegate delegate: SBSDKUILicensePlateScannerViewControllerDelegate?) -> Self
Parameters
presenter
The view controller the new instance should be presented on.
configuration
The configuration to define look and feel of the new license plate scanner view controller.
delegate
The delegate of the new scanner view controller.
Return Value
A new instance of ‘SBSDKUILicensePlateScannerViewController’.
-
Creates a new instance of ‘SBSDKUILicensePlateScannerViewController’.
Declaration
Objective-C
+ (nonnull instancetype) createNewWithConfiguration: (nonnull SBSDKUILicensePlateScannerConfiguration *)configuration andDelegate: (nullable id< SBSDKUILicensePlateScannerViewControllerDelegate>) delegate;
Swift
class func createNew(with configuration: SBSDKUILicensePlateScannerConfiguration, andDelegate delegate: SBSDKUILicensePlateScannerViewControllerDelegate?) -> Self
Parameters
configuration
The configuration to define look and feel of the new license plate scanner view controller.
delegate
The delegate of the new scanner view controller.
Return Value
A new instance of ‘SBSDKUILicensePlateScannerViewController’.
-
The receivers delegate.
Declaration
Objective-C
@property (nonatomic, weak, nullable) id<SBSDKUILicensePlateScannerViewControllerDelegate> delegate;
Swift
weak var delegate: SBSDKUILicensePlateScannerViewControllerDelegate? { get set }
-
Enables or disables the recognition if license plates.
Declaration
Objective-C
@property (nonatomic, assign, unsafe_unretained, readwrite, getter=isRecognitionEnabled) BOOL recognitionEnabled;
Swift
var isRecognitionEnabled: Bool { get set }