---
title: beginGeneratingLibraryChangeNotifications()
framework: mediaplayer
role: symbol
role_heading: Instance Method
path: mediaplayer/mpmedialibrary/begingeneratinglibrarychangenotifications()
---

# beginGeneratingLibraryChangeNotifications()

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

## Declaration

```swift
func beginGeneratingLibraryChangeNotifications()
```

## Discussion

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

## See Also

### Receiving notifications when the user’s library changes

- [endGeneratingLibraryChangeNotifications()](mediaplayer/mpmedialibrary/endgeneratinglibrarychangenotifications().md)
- [lastModifiedDate](mediaplayer/mpmedialibrary/lastmodifieddate.md)
