Contents

enumerateSearchResults(for:startingAt:)

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

Declaration

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

Parameters

  • observer:

    An 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 Finishenumerating(upto:) method. Make sure the page contains whatever information you need to resume the enumeration.

Discussion

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

See Also

Providing search results