<!--
{
  "availability" : [
    "iOS: 27.1.0 -",
    "iPadOS: 27.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVKit",
  "identifier" : "/documentation/AVKit/AVCaptureDeviceDirectionMap",
  "metadataVersion" : "0.1.0",
  "role" : "Class",
  "symbol" : {
    "kind" : "Class",
    "modules" : [
      "AVKit"
    ],
    "preciseIdentifier" : "c:objc(cs)AVCaptureDeviceDirectionMap"
  },
  "title" : "AVCaptureDeviceDirectionMap"
}
-->

# AVCaptureDeviceDirectionMap

An object that groups the cameras a coordinator tracks by the direction they face.

```
class AVCaptureDeviceDirectionMap
```

## Overview

You don’t create instances of `AVCaptureDeviceDirectionMap` directly. An [`AVCaptureDeviceDirectionCoordinator`](/documentation/AVKit/AVCaptureDeviceDirectionCoordinator) object creates a map for the view you give it, and passes an updated map to your change handler each time a camera changes direction.

A map groups the device types you gave the coordinator into two arrays, using the view as the point of reference. The [`forwardFacingDeviceDescriptors`](/documentation/AVKit/AVCaptureDeviceDirectionMap/forwardFacingDeviceDescriptors) array describes the cameras that face the same direction as the view, toward the person looking at it. The [`backwardFacingDeviceDescriptors`](/documentation/AVKit/AVCaptureDeviceDirectionMap/backwardFacingDeviceDescriptors) array describes the cameras that face the other way, toward the scene beyond it. Each array holds [`AVCaptureDeviceDescriptor`](/documentation/AVKit/AVCaptureDeviceDescriptor) values rather than capture devices.

> Note: Either array can be empty when no camera is available or applicable for the current configuration.

## Topics

### Reading the camera directions

[`var forwardFacingDeviceDescriptors: [AVCaptureDeviceDescriptor]`](/documentation/AVKit/AVCaptureDeviceDirectionMap/forwardFacingDeviceDescriptors)

Descriptions of the capture devices that face the same direction as the view.

[`var backwardFacingDeviceDescriptors: [AVCaptureDeviceDescriptor]`](/documentation/AVKit/AVCaptureDeviceDirectionMap/backwardFacingDeviceDescriptors)

Descriptions of the capture devices that face away from the view.

## Relationships

### Conforms To

[`NSObjectProtocol`](/documentation/ObjectiveC/NSObjectProtocol)

[`Sendable`](/documentation/Swift/Sendable)

[`Hashable`](/documentation/Swift/Hashable)

[`CustomStringConvertible`](/documentation/Swift/CustomStringConvertible)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Equatable`](/documentation/Swift/Equatable)

[`CVarArg`](/documentation/Swift/CVarArg)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

### Inherits From

[`NSObject-swift.class`](/documentation/ObjectiveC/NSObject-swift.class)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)