INNER CODE UNIT · Swift

updateNotif

florent37/Flutter-AssetsAudioPlayer · darwin/Classes/Music.swift:340

    func updateNotif(audioMetas: AudioMetas?, isPlaying: Bool) {
        self.audioMetas = audioMetas
        
        if(!self.displayMediaPlayerNotification){
            return
        }
        
        self.nowPlayingInfo.removeAll()
        
        if let t = audioMetas?.title {
            self.nowPlayingInfo[MPMediaItemPropertyTitle] = t
        } else {
            self.nowPlayingInfo[MPMediaItemPropertyTitle] = ""
        }
        
        if let art = audioMetas?.artist {
            self.nowPlayingInfo[MPMediaItemPropertyArtist] = art
        } else {

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…