VisionARManager
public final class VisionARManager
VisionARManager
is an entry point to the high-level framework MapboxVisionAR
focused on AR related tasks.
Depends on VisionManager
.
-
Delegate for
VisionARManager
. Delegate is held as a weak reference.Declaration
Swift
public weak var delegate: VisionARManagerDelegate?
-
Fabric method for creating a
VisionARManager
instance.Declaration
Swift
public static func create(visionManager: VisionManagerProtocol) -> VisionARManager
Parameters
visionManager
Instance of
VisionManager
.Return Value
Instance of
VisionARManager
configured withVisionManager
instance. -
Setup length of AR lane.
Declaration
Swift
public func set(laneLength: Double)
Parameters
laneLength
Length of AR lane in meters.
-
Set AR fence visibility distance in meters.
Declaration
Swift
public func set(fenceVisibilityDistance distance: Float)
Parameters
fenceVisibilityDistance
fence visibility distance in meters.
-
Cleanup the state and resources of
VisionARManger
.Declaration
Swift
public func destroy()
-
Set route to AR. Should be called on every reroute.
Declaration
Swift
public func set(route: Route)