VisionARViewController

class VisionARViewController : UIViewController

Class that represents visual component that renders video stream from the camera and AR navigation route on top of that.

  • Control the visibility of the Mapbox logo.

    Declaration

    Swift

    var isLogoVisible: Bool { get set }
  • Control the visibility of the lane. Defatul is YES

    Declaration

    Swift

    var isLaneVisible: Bool { get set }
  • Control the visibility of the fences. Default is NO

    Declaration

    Swift

    var isFenceVisible: Bool { get set }
  • Change visual parameters of AR lane.

    Declaration

    Swift

    func set(laneVisualParams: LaneVisualParams)

    Parameters

    laneVisualParams

    Configuration that describes visual state of AR lane.

  • Change visual parameters of AR fence.

    Declaration

    Swift

    func set(fenceVisualParams: FenceVisualParams)

    Parameters

    fenceVisualParams

    Configuration that describes visual state of AR fence.

  • Set VisionARManager to enable rendering of ar lane on the view. VisionARManager is held as a weak reference. VisionARViewController will show frames as long as VisionARManager exists.

    Declaration

    Swift

    func set(arManager: Any!)

    Parameters

    arManager

    - instance of VisionARManager.

  • Change overall quality of AR objects. Quality should be in [0.0, 1.0] range. 1.0 stands for the best quality, 0.0 stands for the worst quality. Any other value will get clamped to [0.0, 1.0] range. Tweaking AR quality may improve performance.

    Declaration

    Swift

    func set(arQuality quality: Float)

    Parameters

    quality

    - quality of AR object such as lane and fence.