RecordsProviderInteractor
public protocol RecordsProviderInteractor
Defines the methods for back-to-core notifications regarding search index changes.
-
Associated data provider identifier
Declaration
Swift
var providerIdentifier: String { get } -
Notify about record addition. Engine would add it to the search index asap.
Declaration
Swift
func add(record: IndexableRecord) -
Notify about record alteration. Engine would update search index for corresponding identifier asap.
Declaration
Swift
func update(record: IndexableRecord) -
Notify about record deletion. Engine would drop search index for particular identifier.
Declaration
Swift
func delete(identifier: String) -
Notify about database drop. Engine would drop layer related search indexes.
Declaration
Swift
func deleteAll() -
Check index existence for particular identifier.
Declaration
Swift
func contains(identifier: String) -> Bool
RecordsProviderInteractor Protocol Reference