Commit 9c4155bc authored by Soomin Lee's avatar Soomin Lee

VLCMediaLibraryManager: Add playlist callback

parent ead65db9
......@@ -48,6 +48,11 @@ extension NSNotification {
@objc optional func medialibrary(_ medialibrary: VLCMediaLibraryManager,
didAddGenres genres: [VLCMLGenre])
// Playlist
@objc optional func medialibrary(_ medialibrary: VLCMediaLibraryManager,
didAddPlaylists playlists: [VLCMLPlaylist])
}
class VLCMediaLibraryManager: NSObject {
......@@ -212,6 +217,16 @@ extension VLCMediaLibraryManager {
}
}
// MARK: - VLCMediaLibraryDelegate - Playlists
extension VLCMediaLibraryManager {
func medialibrary(_ medialibrary: VLCMediaLibrary, didAdd playlists: [VLCMLPlaylist]) {
for observer in observers {
observer.value.observer?.medialibrary?(self, didAddPlaylists: playlists)
}
}
}
// MARK: - VLCMediaLibraryDelegate - Discovery
extension VLCMediaLibraryManager {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment