ReplicationFilter

typealias ReplicationFilter = (document: Document, flags: Set<DocumentFlag>) -> Boolean(source)

Delegate that takes Document input parameter and bool output parameter Document push and pull will be allowed if the predicate returns true. Document will be not be replicated, push or pull, otherwise.