---
title: "track(_:cameraInformation:image:)"
framework: dockkit
role: symbol
role_heading: Instance Method
path: "dockkit/dockaccessory/track(_:camerainformation:image:)-82m61"
---

# track(_:cameraInformation:image:)

Automatically generate and send tracking vectors to the device.

## Declaration

```swift
final func track(_ metadata: [AVMetadataObject], cameraInformation: DockAccessory.CameraInformation, image: CVPixelBuffer) async throws
```

## Parameters

- `metadata`: An array of doc://com.apple.documentation/documentation/AVFoundation/AVMetadataObject objects indicating the location of objects within the frame.
- `cameraInformation`: The camera in current use and its orientation.
- `image`: The captured camera image buffer.

## Discussion

Discussion The vectors are based on metadata coming from the camera. Disable system tracking, then supply the observations at a fixed rate between 10 and 30 times per second. Any other rate is unsupported. note: DockKitError.notSupported if called on macOS.
