register(_:)
register(_:)
register(_:) Instance Method of PHPhotoLibrary Registers an observer to be notified when persistent changes occur in the photo library.
func register(_ observer: any PHPhotoLibraryPersistentChangesObserver)Discussion
The observer is held weakly by the photo library. The observer’s photoLibraryPersistentChangesDidUpdate(:)) method is called on an arbitrary serial queue when changes are committed to the photo library. Use fetchPersistentChanges(since:)) to retrieve the specific changes.
Requires read-write photo library authorization (PHAccessLevel.readWrite).