---
title: AVCaptureDeviceDirectionMap
framework: AVKit
role: symbol
role_heading: Class
platforms: [iOS 27.1+, iPadOS 27.1+]
path: avkit/avcapturedevicedirectionmap
---

# AVCaptureDeviceDirectionMap

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

## Declaration

```swift
class AVCaptureDeviceDirectionMap
```

## Mentioned in

Choosing a camera by the direction it faces

## Overview

Overview You don’t create instances of AVCaptureDeviceDirectionMap directly. An 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 array describes the cameras that face the same direction as the view, toward the person looking at it. The backwardFacingDeviceDescriptors array describes the cameras that face the other way, toward the scene beyond it. Each array holds 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

- [forwardFacingDeviceDescriptors](avkit/avcapturedevicedirectionmap/forwardfacingdevicedescriptors.md)
- [backwardFacingDeviceDescriptors](avkit/avcapturedevicedirectionmap/backwardfacingdevicedescriptors.md)

## Relationships

### Inherits From

- [NSObject](objectivec/nsobject-swift.class.md)

### Conforms To

- [CVarArg](swift/cvararg.md)
- [CustomDebugStringConvertible](swift/customdebugstringconvertible.md)
- [CustomStringConvertible](swift/customstringconvertible.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [NSObjectProtocol](objectivec/nsobjectprotocol.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Camera facing direction

- [Choosing a camera by the direction it faces](avkit/choosing-a-camera-by-the-direction-it-faces.md)
- [AVCaptureDeviceDirectionCoordinator](avkit/avcapturedevicedirectioncoordinator.md)
- [AVCaptureDeviceDescriptor](avkit/avcapturedevicedescriptor.md)
