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 records addition. Engine would add it to the search index asap.

    Declaration

    Swift

    func add(records: [IndexableRecord])
  • Notify about record deletion. Engine would drop search index for particular identifier.

    Declaration

    Swift

    func delete(identifier: String)
  • Notify about record deletion. Engine would drop search index for identifiers

    Declaration

    Swift

    func delete(identifiers: [String])
  • Notify about record alteration. Engine would update search index for corresponding identifier asap.

    Declaration

    Swift

    func update(record: IndexableRecord)
  • Notify about database drop. Engine would drop layer related search indexes.

    Declaration

    Swift

    func deleteAll()