VisionARManager

public final class VisionARManager

VisionARManager is an entry point to the high-level framework MapboxVisionAR focused on AR related tasks. Depends on VisionManager.

  • Fabric method for creating a VisionARManager instance.

    Declaration

    Swift

    public static func create(visionManager: VisionManagerProtocol, delegate: VisionARManagerDelegate? = nil) -> VisionARManager

    Parameters

    visionManager

    Instance of VisionManager.

    delegate

    Delegate for VisionARManager. Delegate is held as a strong reference until destroy is called.

    Return Value

    Instance of VisionARManager configured with VisionManager instance and delegate.

  • 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)