SBSDKLicensePlateScannerViewController

@interface SBSDKLicensePlateScannerViewController
    : SBSDKBaseCameraViewController

A camera based view controller to detect license plates on video frames or automatically captured still images.

  • The receivers configuration.

    Declaration

    Objective-C

    @property (nonatomic, strong) SBSDKLicensePlateScannerConfiguration *_Nonnull configuration;

    Swift

    var configuration: SBSDKLicensePlateScannerConfiguration { get set }
  • Enables or disables the license plate detection. Default is YES

    Declaration

    Objective-C

    @property (nonatomic, assign, unsafe_unretained, readwrite,
              getter=isRecognitionEnabled) BOOL recognitionEnabled;

    Swift

    var isRecognitionEnabled: Bool { get set }
  • If set to YES, displays a viewfinder to help the user aligning the device with the license plate. NO hides the viewfinder. Defaults to YES.

    Declaration

    Objective-C

    @property (nonatomic) BOOL showViewFinder;

    Swift

    var showViewFinder: Bool { get set }
  • The background color of the viewfinder surroundings. Defaults to transparent white.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull viewFinderBackgroundColor;

    Swift

    var viewFinderBackgroundColor: UIColor { get set }
  • The line color of the viewfinder. Defaults to opaque white.

    Declaration

    Objective-C

    @property (nonatomic, strong) UIColor *_Nonnull viewFinderLineColor;

    Swift

    var viewFinderLineColor: UIColor { get set }
  • The line width of the viewfinder. Defaults to 2 points.

    Declaration

    Objective-C

    @property (nonatomic) CGFloat viewFinderLineWidth;

    Swift

    var viewFinderLineWidth: CGFloat { get set }
  • Defines a minimum inset for capturing frame. Default is UIEdgeInsetsMake(100, 20, 100, 20).

    Declaration

    Objective-C

    @property (nonatomic) UIEdgeInsets viewFinderMinimumInset;

    Swift

    var viewFinderMinimumInset: UIEdgeInsets { get set }
  • Set to YES to enable the video light of the device. May help in dark environments but may also cause unwanted reflections. Defaults to NO.

    Declaration

    Objective-C

    @property (nonatomic) BOOL flashLightEnabled;

    Swift

    var flashLightEnabled: Bool { get set }
  • Returns YES, if camera session supports flash light.

    Declaration

    Objective-C

    @property (nonatomic, readonly) BOOL isFlashLightAvailable;

    Swift

    var isFlashLightAvailable: Bool { get }
  • Not available.

    Declaration

    Objective-C

    - (nonnull instancetype)init;
  • Not available.

    Declaration

    Objective-C

    + (nonnull instancetype)new;
  • Designated initializer. 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:(nullable UIView *)parentView
                            delegate:
                                (nonnull id<
                                    SBSDKLicensePlateScannerViewControllerDelegate>)
                                    delegate
                       configuration:
                           (nullable SBSDKLicensePlateScannerConfiguration *)
                               configuration;

    Swift

    init?(parentViewController: UIViewController, parentView: UIView?, delegate: SBSDKLicensePlateScannerViewControllerDelegate, configuration: SBSDKLicensePlateScannerConfiguration?)

    Parameters

    parentViewController

    The view controller the newly created instance is embedded into. If parentViewController conforms to SBSDKLicensePlateScannerViewControllerDelegate, it is automatically set as delegate.

    parentView

    The view the newly created instance is embedded into. If nil the parentViewControllers view is used.

    delegate

    The delegate of the receiver.

    configuration

    The configuration of the receiver. If nil, the default configuration is used.

    Return Value

    New instance of SBSDKLicensePlateScannerViewController.

  • The current frame of the view finder.

    Declaration

    Objective-C

    - (CGRect)currentViewFinderRect;

    Swift

    func currentViewFinderRect() -> CGRect