Contents

routeChangeNotification

A notification the system posts when its audio route changes.

Declaration

class let routeChangeNotification: NSNotification.Name

Mentioned 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.

Topics

User Info Keys

User Info Values

See Also

Inspecting the current route