Protocols

The following protocols are available globally.

  • CBLArray protocol defines a set of methods for reading array data.

    See more

    Declaration

    Objective-C

    @protocol CBLArray <NSObject, CBLArrayFragment, NSFastEnumeration>
  • CBLArrayFragment protocol provides subscript access to CBLFragment objects by index.

    See more

    Declaration

    Objective-C

    @protocol CBLArrayFragment <NSObject>
  • 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 CBLMutableDocument, 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>
  • CBLDictionaryFragment protocol provides subscript access to CBLFragment objects by key.

    See more

    Declaration

    Objective-C

    @protocol CBLDictionaryFragment <NSObject>
  • Replication target endpoint.

    Declaration

    Objective-C

    @protocol CBLEndpoint <NSObject>
  • CBLFragment protocol provides read access to the data value wrapped by a fragment object.

    See more

    Declaration

    Objective-C

    @protocol CBLFragment <NSObject>
  • Listener token returned when adding a change listener. The token is used for removing the added change listener.

    Declaration

    Objective-C

    @protocol CBLListenerToken <NSObject>
  • CBLMutableFragment protocol provides read and write access to the data value wrapped by a fragment object.

    See more

    Declaration

    Objective-C

    @protocol CBLMutableFragment <CBLFragment>