NSNotification

class NSNotification : NSObject, NSCopying, NSCoding
  • 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

    public static let AKEngineRestartedAfterRouteChange =