Enumeration

AVAudioSession.RouteChangeReason

Constants that indicate the reason for an audio route change.

Declaration

enum RouteChangeReason : UInt

Overview

These constants appear as possible values for the AVAudioSessionRouteChangeReasonKey key in the userInfo dictionary in a routeChangeNotification notification.

Topics

Route Change Reasons

case unknown

A value that indicates the reason for the change is unknown.

case newDeviceAvailable

A value that indicates a user action, such as plugging in a headset, has made a preferred audio route available.

case oldDeviceUnavailable

A value that indicates that the previous audio output path is no longer available.

case categoryChange

A value that indicates that the category of the session object changed.

case override

A value that indicates that the output route was overridden by the app.

case wakeFromSleep

A value that indicates that the route changed when the device woke up from sleep.

case noSuitableRouteForCategory

A value that indicates that the route changed because no suitable route is now available for the specified category.

case routeConfigurationChange

A value that indicates that the configuration for a set of I/O ports has changed.