Protocols

The following protocols are available globally.

  • Protocol which represents the source of video stream along with meta-information to its observers.

    See more

    Declaration

    Swift

    public protocol VideoSource : AnyObject
  • Observer of a video source.

    See more

    Declaration

    Swift

    public protocol VideoSourceObserver : AnyObject
  • Interface that user’s custom object should conform to in order to receive events from VisionManager. Some methods will not be called until Camera.isCalibrated value becomes true due to highly imprecise results. 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.
    See more

    Declaration

    Swift

    public protocol VisionManagerDelegate : AnyObject
  • Protocol that provides an ability to use VisionManager and VisionReplayManager interchangeably by abstracting common functionality.

    See more

    Declaration

    Swift

    public protocol VisionManagerProtocol : AnyObject