How to build a list of replicated documents

Hi Team!

In my Android project I run one-shot filtered push replication. This replication may be stopped before it completely finishes so that not all documents are replicated.

How can I list all documents which have been successfully replicated?

I believe I browsed all API documentation but was not able to find corresponding API. I appreciate your help or relevant link.

Thank you and best regards,
Ilya.

The channel metadata isn’t replicated to Couchbase Lite databases. However there is a change listener API on the database object and one of the properties of the change event is isExternal() (if it returns true, it means that the document was added to the local database as the result of a replication). So you could build up a list of documents in the same order as they were replicated by using that API.

James