![]() |
Couchbase Lite
Objective-C API for iOS and Mac OS
|
Abstract interface for an application-defined object that can resolve a conflict between two revisions of a document.
Called when saving a CBLDocument, when there is a a newer revision already in the database; and also when the replicator pulls a remote revision that conflicts with a locally-saved revision.
Instance Methods | |
(nullable NSDictionary *) | - resolveMine:withTheirs:andBase: |
Resolves conflicting edits of a document against their common base. More... | |
- (nullable NSDictionary*) resolveMine: | (NSDictionary *) | localProperties | |
withTheirs: | (NSDictionary *) | conflictingProperties | |
andBase: | (NSDictionary *) | baseProperties | |
Resolves conflicting edits of a document against their common base.
localProperties | The revision that is being saved, or the revision in the local database for which there is a server-side conflict. |
conflictingProperties | The conflicting revision that is already stored in the database, or on the server. |
baseProperties | The common parent revision of these two revisions, if available. |