Contents

didEnumerate(_:)

Delivers an array of search results to the observer.

Declaration

func didEnumerate(_ searchResults: [any NSFileProviderSearchResult])

Discussion

For files stored on your server, consult search indexes on the server and use them to create an array of NSFileProviderSearchResult instances that you provide to this method.

You can call this method multiple times prior to calling finishEnumerating(upTo:) or finishEnumeratingWithError(_:), as long as the total number of results doesn’t exceed NSFileProviderSearchEnumerationObserver/maxNumberOfResults.

See Also

Providing search results