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
interactor
interactor to register
-
Resolves SearchResultSuggestion into SearchResult if possible
Declaration
Swift
func resolve(suggestion: SearchResultSuggestion, completion: @escaping (SearchResult?) -> Void)
Parameters
suggestion
suggestion to resolve
completion
completion closure