<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AVFAudio",
  "identifier" : "/documentation/AVFAudio/AVAudioSession/routeChangeNotification",
  "metadataVersion" : "0.1.0",
  "role" : "Type Property",
  "symbol" : {
    "kind" : "Type Property",
    "modules" : [
      "AVFAudio"
    ],
    "preciseIdentifier" : "c:@AVAudioSessionRouteChangeNotification"
  },
  "title" : "routeChangeNotification"
}
-->

# routeChangeNotification

A notification the system posts when its audio route changes.

```
class let routeChangeNotification: NSNotification.Name
```

## Discussion

The <doc://com.apple.documentation/documentation/Foundation/NSNotification/userInfo> dictionary of this notification contains the [`AVAudioSessionRouteChangeReasonKey`](/documentation/AVFAudio/AVAudioSessionRouteChangeReasonKey) and [`AVAudioSessionRouteChangePreviousRouteKey`](/documentation/AVFAudio/AVAudioSessionRouteChangePreviousRouteKey) keys, which provide information about the route change.

See [Responding to audio route changes](/documentation/AVFAudio/responding-to-audio-route-changes) for more information on using this notification.

The system posts this notification on a secondary thread.

## Topics

### User Info Keys

[`AVAudioSessionRouteChangeReasonKey`](/documentation/AVFAudio/AVAudioSessionRouteChangeReasonKey)

A user info key that’s used to retrieve the route change reason.

[`AVAudioSessionRouteChangePreviousRouteKey`](/documentation/AVFAudio/AVAudioSessionRouteChangePreviousRouteKey)

A user info key that’s used to retrieve the previously active audio session route.

### User Info Values

[`AVAudioSession.RouteChangeReason`](/documentation/AVFAudio/AVAudioSession/RouteChangeReason)

Constants that indicate the reason for an audio route change.



---

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)