AKNotifications

@objc open class AKNotifications: NSObject

Object to handle notifications for events that can affect the audio

  • After the audio route is changed, (headphones plugged in, for example) AudioKit restarts, and engineRestartAfterRouteChange is sent.

    The userInfo dictionary of this notification contains the AVAudioSessionRouteChangeReasonKey and AVAudioSessionSilenceSecondaryAudioHintTypeKey keys, which provide information about the route change.

    Declaration

    Swift

    open static let engineRestartedAfterRouteChange: String = "io.audiokit.enginerestartedafterroutechange"