Protocols

The following protocols are available globally.

  • A protocol for an application-defined object that can resolve a conflict between two versions of a document along with the base or the common ancester document if available. 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>
  • CBLFragment protocol provides read and write access to the data value wrapped by a fragment object.

    See more

    Declaration

    Objective-C

    @protocol CBLFragment <CBLReadOnlyFragment>
  • CBLReadOnlyArrayFragment protocol provides subscript access to CBLReadOnlyFragment objects by index.

    See more

    Declaration

    Objective-C

    @protocol CBLReadOnlyArrayFragment <NSObject>
  • CBLReadOnlyDictionaryFragment protocol provides subscript access to CBLReadOnlyFragment objects by key.

    See more

    Declaration

    Objective-C

    @protocol CBLReadOnlyDictionaryFragment <NSObject>
  • CBLReadOnlyFragment protocol provides readonly access to the data value wrapped by a fragment object.

    See more

    Declaration

    Objective-C

    @protocol CBLReadOnlyFragment <NSObject>