INNER CODE UNIT · Swift

func

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

    static func ==(lhs: AudioMetas, rhs: AudioMetas) -> Bool {
        return
            lhs.title == rhs.title &&
                lhs.artist == rhs.artist &&
                lhs.album == rhs.album &&
                lhs.image == rhs.image &&
                lhs.imageType == rhs.imageType &&
                lhs.imagePackage == rhs.imagePackage
    }
}

func fetchAudioMetas(from: NSDictionary) -> AudioMetas {
    //metas
    let songTitle = from["song.title"] as? String //can be null
    let songArtist = from["song.artist"] as? String //can be null
    let songAlbum = from["song.album"] as? String //can be null
    let songImage = from["song.image"] as? String //can be null
    let songImageType = from["song.imageType"] as? String //can be null

View source record →

📰 Research Paper
Loading…
⏳ Fetching content…