track(_:cameraInformation:)
Automatically generate and send tracking vectors to the device.
Declaration
final func track(_ data: [DockAccessory.Observation], cameraInformation: DockAccessory.CameraInformation) async throwsParameters
- data:
An array of Observation objects indicating the location of objects of interest in the frame.
- cameraInformation:
The camera currently being used, and the orientation of the device.
Discussion
The device receives tracking vectors based on manually constructed observations.
Disable system tracking, then supply the observations at a fixed rate between 10 and 30 times per second. Any other rate is unsupported. Calling this method without first disabling system tracking is a fatal error.