MPMediaLibrary
An object that represents the state of synced media items on a device.
Declaration
class MPMediaLibraryOverview
A user may sync their device, changing the contents on the device, while your app is running. You can use the notification provided by this class to ensure that your app’s cache of the user’s library is up-to-date.
To retrieve media items from the media library, build a custom query as described in MPMediaPropertyPredicate and MPMediaQuery.
Topics
Getting the default media library
Receiving notifications when the user’s library changes
beginGeneratingLibraryChangeNotifications()endGeneratingLibraryChangeNotifications()lastModifiedDate