<!--
{
  "availability" : [
    "iOS: 3.0.0 -",
    "iPadOS: 3.0.0 -",
    "macCatalyst: 13.1.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "MediaPlayer",
  "identifier" : "/documentation/MediaPlayer/MPMediaLibrary/beginGeneratingLibraryChangeNotifications()",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Media Player"
    ],
    "preciseIdentifier" : "c:objc(cs)MPMediaLibrary(im)beginGeneratingLibraryChangeNotifications"
  },
  "title" : "beginGeneratingLibraryChangeNotifications()"
}
-->

# beginGeneratingLibraryChangeNotifications()

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

```
func beginGeneratingLibraryChangeNotifications()
```

## Discussion

This method is nestable, that is, you can call it multiple times. To turn off notifications, call [`endGeneratingLibraryChangeNotifications()`](/documentation/MediaPlayer/MPMediaLibrary/endGeneratingLibraryChangeNotifications()) the same number of times that you called [`beginGeneratingLibraryChangeNotifications()`](/documentation/MediaPlayer/MPMediaLibrary/beginGeneratingLibraryChangeNotifications()).

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)