Type Property

mediaServicesWereLostNotification

Posted when the media server is terminated.

Declaration

class let mediaServicesWereLostNotification: NSNotification.Name

Discussion

This notification is sent when the media server first becomes unavailable. Most applications need not subscribe to this notification and should subscribe to the mediaServicesWereResetNotification notification instead, but you can use this notification as a cue to take any appropriate steps to handle requests that come in before the server restarts.

This notification has no userInfo dictionary.

This notification is posted on the main thread.

See Also

Responding to Audio Session Notifications

Responding to Audio Session Interruptions

Directly observe audio session notifications to ensure that your app responds to interruptions.

Responding to Audio Session Route Changes

Directly observe audio session notifications to ensure that your app responds to interruptions.

class let interruptionNotification: NSNotification.Name

Posted when an audio interruption occurs.

class let routeChangeNotification: NSNotification.Name

Posted when the system’s audio route changes.

class let silenceSecondaryAudioHintNotification: NSNotification.Name

Posted when the primary audio from other applications starts and stops.