ReplicationFilterDelegate

public protocol ReplicationFilterDelegate: class

Protocol for filtering documents from being sent to the server during replication

  • Used to exclude documents from being sent to the server during replication.

    Declaration

    Swift

    func database(_ database: Database, shouldSendDocument document: Document, filterParameters: [String: Any]?) -> Bool

    Parameters

    database

    The replicating database

    document

    The document to consider for replication

    filterParameters

    the optional dictionary of parameters established in the ReplicationConfiguration

    Return Value

    True if the document should be replicated