VisionManagerDelegate

public protocol VisionManagerDelegate : AnyObject

Interface that user’s custom object should conform to in order to receive events from VisionManager. Delegate methods are called one by one followed by visionManagerDidCompleteUpdate call, which denotes the end of the iteration.

Note

All delegate methods are called on a background thread.
  • Tells the delegate that authorization status was updated. VisionManager may not emit events unless it has successfully authorized.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateAuthorizationStatus authorizationStatus: AuthorizationStatus)
  • Tells the delegate that segmentation mask was updated. Requires at least low performance for segmentation.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateFrameSegmentation frameSegmentation: FrameSegmentation)
  • Tells the delegate that detections were updated. Requires at least low performance for detection.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateFrameDetections frameDetections: FrameDetections)
  • Tells the delegate that classified signs were updated. Requires at least low performance for detection.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateFrameSignClassifications frameSignClassifications: FrameSignClassifications)
  • Tells the delegate that road description was updated. Road description parameters reach maximum accuracy when Camera is calibrated. Requires at least low performance for segmentation.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateRoadDescription roadDescription: RoadDescription)
  • Tells the delegate that world description was updated. World description parameters reach maximum accuracy when Camera is calibrated. Requires at least low performance for detection.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateWorldDescription worldDescription: WorldDescription)
  • Tells the delegate that vehicle state was updated.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateVehicleState vehicleState: VehicleState)
  • visionManager(_:didUpdateCountry:) Default implementation

    Tells the delegate that country which is used in the VisionSDK changed.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateCountry country: Country)
  • visionManager(_:didUpdateCamera:) Default implementation

    Tells the delegate that camera state was updated.

    Default Implementation

    Declaration

    Swift

    func visionManager(_ visionManager: VisionManagerProtocol, didUpdateCamera camera: Camera)
  • visionManagerDidCompleteUpdate(_:) Default implementation

    This method is called after the whole update iteration is completed. This means that all the data that came from delegate methods is in sync. This method is an appropriate place to work with different values emitted from VisionManager.

    Note

    Performance of this function is critical since VisionManager blocks until the method execution is finished.

    Default Implementation

    Declaration

    Swift

    func visionManagerDidCompleteUpdate(_ visionManager: VisionManagerProtocol)