metadataQuery(_:replacementValueForAttribute:value:)
Returns a different value for a given attribute and value.
Declaration
optional func metadataQuery(_ query: NSMetadataQuery, replacementValueForAttribute attrName: String, value attrValue: Any) -> AnyParameters
- query:
The query that produced the result object with
attrName. - attrName:
The attribute in question.
- attrValue:
The attribute value to replace.
Return Value
Object that replaces the value of attrName in the result object
Discussion
The delegate implementation of this method could convert specific query attribute values to other attribute values, for example, converting date object values to formatted strings for display.