Contents

selectSubjects(_:)

Selects subjects to track with specific identifiers

Declaration

final func selectSubjects(_ ids: [UUID]) async throws

Parameters

  • ids:

    The unique identifiers of subjects in the video frame.

Discussion

TrackingStates provide a list of subjects with their unique identifiers in the video frame. Use this method to select a subset of subjects to track by passing a list of unique identifiers. If you pass an empty list, the system defaults to system tracking (if enabled).

If you disable system tracking, this configuration change applies to any custom tracking for this dock accessory. If system tracking is enabled, the configuration applies to any camera stream that the app has open.

Call this method when implementing your own custom tracking behavior.