I would like to know if it is possible to observe Media Library changes in iOS.
I would like to be notified every time a user adds, remove or edit a Media Item (Song, Artist or Album item).
I have still not found a way to do that.
I would like to know if it is possible to observe Media Library changes in iOS.
I would like to be notified every time a user adds, remove or edit a Media Item (Song, Artist or Album item).
I have still not found a way to do that.
Copyright © 2021 Jogjafile Inc.
You can use notification
MPMediaLibraryDidChangeto observe the library changes. Be sure to callbeginGeneratingLibraryChangeNotifications()first.For reference https://developer.apple.com/documentation/mediaplayer/mpmedialibrary