routeChangeNotification
A notification the system posts when its audio route changes.
Declaration
class let routeChangeNotification: NSNotification.NameMentioned in
Discussion
The userInfo dictionary of this notification contains the AVAudioSessionRouteChangeReasonKey and AVAudioSessionRouteChangePreviousRouteKey keys, which provide information about the route change.
See Responding to audio route changes for more information on using this notification.
The system posts this notification on a secondary thread.