INNER CODE UNIT · Swift
showNotification
florent37/Flutter-AssetsAudioPlayer · darwin/Classes/Music.swift:190
func showNotification(show: Bool) {
#if os(iOS)
let wasShowing = self.displayMediaPlayerNotification
self.displayMediaPlayerNotification = show
if(wasShowing){
//hide
self.hideNotification()
} else {
if let metas = self.audioMetas, let notificationSettings = self.notificationSettings {
//show
self.setupMediaPlayerNotificationView(notificationSettings: notificationSettings, audioMetas: metas, isPlaying: self.playing)
}
}
#endif
}
func hideNotification() {
#if os(iOS)