Instance Method

beginGeneratingLibraryChangeNotifications()

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

Declaration

func beginGeneratingLibraryChangeNotifications()

Discussion

This method is nestable—that is, you can call it multiple times. To turn off notifications, you must call endGeneratingLibraryChangeNotifications() the same number of times that you called beginGeneratingLibraryChangeNotifications().

See Also

Receiving Notifications when the User's Library Changes

func endGeneratingLibraryChangeNotifications()

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

static let MPMediaLibraryDidChange: NSNotification.Name

Indicates the media library has changed.

var lastModifiedDate: Date

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