---
title: "signalEnumerator(for:completionHandler:)"
framework: fileprovider
role: symbol
role_heading: Instance Method
path: "fileprovider/nsfileprovidermanager/signalenumerator(for:completionhandler:)"
---

# signalEnumerator(for:completionHandler:)

Alerts the system to changes in the specified folder’s content.

## Declaration

```swift
func signalEnumerator(for containerItemIdentifier: NSFileProviderItemIdentifier, completionHandler completion: @escaping @Sendable ((any Error)?) -> Void)
```

```swift
func signalEnumerator(for containerItemIdentifier: NSFileProviderItemIdentifier) async throws
```

## Mentioned in

Synchronizing the File Provider Extension Signaling Changes for User-Driven Actions Using push notifications to signal changes

## Discussion

Discussion important: You can call this method from synchronous code using a completion handler, as shown on this page, or you can call it as an asynchronous method that has the following declaration: func signalEnumerator(for containerItemIdentifier: NSFileProviderItemIdentifier) async throws For information about concurrency and asynchronous code in Swift, see Calling Objective-C APIs Asynchronously.

## See Also

### Performing actions

- [placeholderURL(for:)](fileprovider/nsfileprovidermanager/placeholderurl(for:).md)
- [writePlaceholder(at:withMetadata:)](fileprovider/nsfileprovidermanager/writeplaceholder(at:withmetadata:).md)
- [register(_:forItemWithIdentifier:completionHandler:)](fileprovider/nsfileprovidermanager/register(_:foritemwithidentifier:completionhandler:).md)
- [waitForChanges(below:completionHandler:)](fileprovider/nsfileprovidermanager/waitforchanges(below:completionhandler:).md)
- [globalProgress(for:)](fileprovider/nsfileprovidermanager/globalprogress(for:).md)
