update(_:forFileAt:)
Provides searchable attributes for a file at the specified URL.
Declaration
func update(_ attributes: CSSearchableItemAttributeSet, forFileAt contentURL: URL) throwsParameters
- attributes:
The attribute set for the file at
contentURL. - contentURL:
The URL of the file to provide attributes for.
Discussion
When Core Spotlight invokes this method, update the properties of the attribute set according to the content in the specified file. For a complete list of properties available, see CSSearchableItemAttributeSet.