ARViewControllerObjc

Objective-C

@interface ARViewControllerObjc : UIViewController

Swift

class ARViewControllerObjc : UIViewController

The ARViewControllerObjc provides an infrastructure for your application to manage BearScanner. You can create instances of ARViewControllerObjc or its subclasses and use these objects to provide the specific behavior and visual appearance you need.

Warning

You can create multiple instances of ARViewControllerObjc or its subclasses, but you can’t show them simultaneously. And keep in mind that each instance of ARViewControllerObjc or its subclass uses the same view for rendering. Be careful with the view states.
  • The time after that scanner will be paused in seconds.

    Note

    The default value of this property is 8 seconds.

    Declaration

    Objective-C

    @property (nonatomic) NSInteger recognitionTimeout;

    Swift

    var recognitionTimeout: Int { get set }
  • Customize scanline color.

    Note

    The default value of this property is purple color.

    Declaration

    Objective-C

    @property (nonatomic, strong, nonnull) UIColor *scanlineColor;

    Swift

    var scanlineColor: UIColor { get set }
  • Automatic camera control.

    If you want to manage pausing and resuming camera by yourself you should switch this property to false.

    Note

    The default value of this property is true. Camera will be resumed automatically on viewDidAppear and paused on viewDidDisappear. If camera was enabled when app goes to background, BearSDK will pause it and resume when app becomes active regardless of the value of this property.

    Declaration

    Objective-C

    @property (nonatomic) BOOL automaticCameraСontrol;

    Swift

    var automaticCameraСontrol: Bool { get set }
  • Object to control Bear scanner features

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) id<ARHandlerProtocol> handler;

    Return Value

    The object conforms to ARHandlerProtocol

  • Proxy object for Xamarin to control Bear scanner features

    Declaration

    Objective-C

    @property (nonatomic, readonly, nonnull) ARHandlerXamarinProxy *xamarinHandler;

    Swift

    var xamarinHandler: ARHandlerXamarinProxy { get }
  • Delegate used to receive scanning callbacks

    Declaration

    Objective-C

    @property (nonatomic, weak, nullable) id<ARDelegate> delegate;