IndexableDataProvider
public protocol IndexableDataProvider : IndexableDataResolver
Defines an interface for external data indexing
-
This id used to identify which SearchResultSuggestion related to which IndexableDataProvider
Declaration
Swift
static var providerIdentifier: String { get } -
Indexable data provider can use provided interactor for operations over IndexableRecords
Declaration
Swift
func registerProviderInteractor(interactor: RecordsProviderInteractor)Parameters
interactorinteractor to register
-
Resolves SearchResultSuggestion into SearchResult if possible
Declaration
Swift
func resolve(suggestion: SearchResultSuggestion, completion: @escaping (SearchResult?) -> Void)Parameters
suggestionsuggestion to resolve
completioncompletion closure
IndexableDataProvider Protocol Reference