Type Property

MPMediaLibraryDidChange

Indicates the media library has changed.

Declaration

static let MPMediaLibraryDidChange: NSNotification.Name

Discussion

When MPMediaLibraryDidChangeNotification is posted, your app should reevaluate items or playlists that you previously cached.

See Also

Receiving Notifications when the User's Library Changes

func beginGeneratingLibraryChangeNotifications()

Asks the media library to turn on notifications for whenever the library changes.

func endGeneratingLibraryChangeNotifications()

Asks the media library to turn off notifications for whenever the library changes.

var lastModifiedDate: Date

The calendar date on which the media library was last modified.