---
title: "enumerateSearchResults(for:startingAt:)"
framework: fileprovider
role: symbol
role_heading: Instance Method
path: "fileprovider/nsfileprovidersearchenumerator/enumeratesearchresults(for:startingat:)"
---

# enumerateSearchResults(for:startingAt:)

Enumerates search results starting from the specified page, in response to a call from the framework.

## Declaration

```swift
func enumerateSearchResults(for observer: any NSFileProviderSearchEnumerationObserver, startingAt page: NSFileProviderPage?)
```

## Parameters

- `observer`: An doc://com.apple.fileprovider/documentation/FileProvider/NSFileProviderSearchEnumerationObserver, to which your extension provides search results.
- `page`: An indication of a location within the search results to resume enumeration. This parameter is non-nil if you previously provided a nextPage parameter to the observer’s doc://com.apple.fileprovider/documentation/FileProvider/NSFileProviderSearchEnumerationObserver/finishEnumerating(upTo:) method. Make sure the page contains whatever information you need to resume the enumeration.

## Discussion

Discussion Implement this method to perform your search and deliver pages of results to observer.

## See Also

### Providing search results

- [NSFileProviderSearchEnumerationObserver](fileprovider/nsfileprovidersearchenumerationobserver.md)
- [NSFileProviderPage](fileprovider/nsfileproviderpage.md)
