IndexableDataResolver
public protocol IndexableDataResolver
An object responsible for fetching object details and converting SearchSuggestion
into SearchResult
.
-
That identifier helps to find appropriate resolver for
SearchResultSuggestion
Declaration
Swift
static var providerIdentifier: String { get }
-
Resolves
SearchResultSuggestion
intoSearchResult
if possibleDeclaration
Swift
func resolve(suggestion: SearchResultSuggestion, completion: @escaping (SearchResult?) -> Void)
Parameters
suggestion
suggestion to resolve
completion
completion closure