INNER CODE UNIT · Swift
notificationSettings
florent37/Flutter-AssetsAudioPlayer · darwin/Classes/Music.swift:39
func notificationSettings(from: NSDictionary) -> NotificationSettings {
return NotificationSettings(
nextEnabled: from["notif.settings.nextEnabled"] as? Bool ?? true,
playPauseEnabled: from["notif.settings.playPauseEnabled"] as? Bool ?? true,
prevEnabled: from["notif.settings.prevEnabled"] as? Bool ?? true,
seekBarEnabled: from["notif.settings.seekBarEnabled"] as? Bool ?? true
)
}
struct AudioMetas : Equatable {
var title: String?
var artist: String?
var album: String?
var image: String?
var imageType: String?
var imagePackage: String?
init(title: String?, artist: String?, album: String?, image: String?, imageType: String?, imagePackage: String?) {