ARViewController
@objc
open class ARViewController : UIViewController
The ARViewController
provides an infrastructure for your application to manage BearScanner
.
You can create instances of ARViewController
or its subclasses and use these objects to provide
the specific behavior and visual appearance you need.
Warning
You can create multiple instances ofARViewController
or its subclasses,
but you can’t show them simultaneously. And keep in mind that each instance of ARViewController
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.
Changes will be applied after
viewDidLoad
invocation.Note
The default value of this property is 8 seconds.Declaration
Swift
@IBInspectable open var recognitionTimeout: Int
-
Customize scanning line color.
Changes will be applied after
viewDidLoad
invocation.Note
The default value of this property is purple color.Declaration
Swift
@IBInspectable open var scanlineColor: UIColor
-
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 onviewDidAppear
and paused onviewDidDisappear
. 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
Swift
@IBInspectable open var automaticCameraСontrol: Bool { get set }
-
Object to control Bear scanner features
Declaration
Swift
@objc public var handler: ARHandlerProtocol { get }
Return Value
The object conforms to
ARHandlerProtocol
-
Proxy object for Xamarin to control Bear scanner features
Declaration
Swift
@objc public var xamarinHandler: ARHandlerXamarinProxy { get }
-
Delegate used to receive SDK callbacks
Declaration
Swift
@IBOutlet public weak var delegate: ARDelegate? { get set }
-
Use this initializer to instantiate view controller programmatically
Declaration
Swift
@objc public init()