An object that represents the state of synced media items on a device.
SDKs
- iOS 3.0+
- Mac Catalyst 13.0+
Framework
- Media Player
Declaration
class MPMediaLibrary : NSObject
Overview
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 MPMedia
and MPMedia
.