Last active
July 17, 2019 11:22
-
-
Save NunoAlexandre/8fda4bf645434b81fa09f9fc24448f95 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
observers.append( | |
NotificationCenter.default.addObserver( | |
forName: AVAudioSession.interruptionNotification, | |
object: nil, | |
queue: nil | |
) | |
{ [weak weakSelf = self] (notification) in | |
weakSelf?.onInterruption(notification) | |
} | |
) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment