VisionARManagerDelegate
public protocol VisionARManagerDelegate : AnyObject
Interface that user’s custom object should conform to in order to receive events from VisionARManager
.
Note
All delegate methods are called on a background thread.-
visionARManager(_:didUpdateARCamera:)
Default implementationTells the delegate that AR camera was updated.
Default Implementation
Declaration
Swift
@available(*, deprecated, message: "This method will be removed in version 0.14.0. Please use VisionManagerDelegate.visionManager(_:didUpdateCamera:﹚ method instead") func visionARManager(_ visionARManager: VisionARManager, didUpdateARCamera camera: ARCamera)
-
visionARManager(_:didUpdateARLane:)
Default implementationTells the delegate that AR lane was updated.
Default Implementation
Declaration
Swift
func visionARManager(_ visionARManager: VisionARManager, didUpdateARLane lane: ARLane?)
-
visionARManager(_:didUpdateARMask:)
Default implementationTells the delegate that AR mask was updated. AR mask defines areas where AR should not be rendered (e.g. hood, dashboard, device mount, etc.). Each pixel contains a value representing confidence that AR pixel should not be rendered. Value range is [0,1], where: 0 - pixel should be rendered, 1 - pixel should NOT be rendered.
Default Implementation
Declaration
Swift
func visionARManager(_ visionARManager: VisionARManager, didUpdateARMask: Image)
-
visionARManager(_:didUpdateARLaneCutoff:)
Default implementationTells the delegate that AR lane cutoff was updated. AR lane cutoff is a relative distance where AR lane should be cut off. Range [0..1] is appropriate. Values greatest than
1
have no effect.Default Implementation
Declaration
Swift
func visionARManager(_ visionARManager: VisionARManager, didUpdateARLaneCutoff: Float)
-
visionARManager(_:didUpdateARFences:)
Default implementationTells the delegate that AR fences were updated.
Default Implementation
Declaration
Swift
func visionARManager(_ visionARManager: VisionARManager, didUpdateARFences arFences: [ARFence])
-
visionARManager(_:didUpdateRoute:)
Default implementationTells the delegate that route was updated.
Default Implementation
Declaration
Swift
func visionARManager(_ visionARManager: VisionARManager, didUpdateRoute route: Route)