---
title: AVRouteDetector
framework: avfoundation
role: symbol
role_heading: Class
path: avfoundation/avroutedetector
---

# AVRouteDetector

An object that detects available media playback routes.

## Declaration

```swift
class AVRouteDetector
```

## Mentioned in

Supporting AirPlay in your app

## Overview

Overview If you enable route detection, the object reports whether it detects multiple playback routes. If it does, use AVRoutePickerView to present the UI for the user to select an appropriate route.

## Topics

### Detecting routes

- [detectsCustomRoutes](avfoundation/avroutedetector/detectscustomroutes.md)
- [isRouteDetectionEnabled](avfoundation/avroutedetector/isroutedetectionenabled.md)
- [multipleRoutesDetected](avfoundation/avroutedetector/multipleroutesdetected.md)
- [AVRouteDetectorMultipleRoutesDetectedDidChange](foundation/nsnotification/name-swift.struct/avroutedetectormultipleroutesdetecteddidchange.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)
