Protocols

The following protocols are available globally.

  • 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.

    See more

    Declaration

    Objective-C

    @protocol CBLConflictResolver <NSObject>

    Swift

    protocol CBLConflictResolver : NSObjectProtocol
  • CBLProperties defines a JSON-compatible object, much like an NSMutableDictionary but with type-safe accessors. It is implemented by classes CBLDocument and CBLSubdocument.

    See more

    Declaration

    Objective-C

    @protocol CBLProperties <NSObject>

    Swift

    protocol CBLPropertiesProtocol : NSObjectProtocol