VisionSafetyManagerDelegate
public protocol VisionSafetyManagerDelegate : AnyObject
Interface that user’s custom object should conform to in order to receive events from VisionSafetyManager
.
Delegate methods are called one by one followed by visionManagerDidCompleteUpdate
call on a delegate of VisionManager
.
NOTE: All delegate methods are called on a background thread.
-
visionSafetyManager(_:didUpdateRoadRestrictions:)
Default implementationTells the delegate that current road restrictions were updated.
Default Implementation
Declaration
Swift
func visionSafetyManager(_ visionSafetyManager: VisionSafetyManager, didUpdateRoadRestrictions: RoadRestrictions)
-
visionSafetyManager(_:didUpdateCollisions:)
Default implementationTells the delegate that new probable collisions were detected.
Default Implementation
Declaration
Swift
func visionSafetyManager(_ visionSafetyManager: VisionSafetyManager, didUpdateCollisions: [CollisionObject])