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>

    Swift

    protocol CBLArrayProtocol : NSFastEnumeration, CBLArrayFragment
  • CBLArrayFragment protocol provides subscript access to CBLFragment objects by index.

    See more

    Declaration

    Objective-C

    @protocol CBLArrayFragment <NSObject>

    Swift

    protocol CBLArrayFragment
  • CBLDictionaryFragment protocol provides subscript access to CBLFragment objects by key.

    See more

    Declaration

    Objective-C

    @protocol CBLDictionaryFragment <NSObject>

    Swift

    protocol CBLDictionaryFragment
  • Replication target endpoint.

    Declaration

    Objective-C

    @protocol CBLEndpoint <NSObject>

    Swift

    protocol CBLEndpoint : NSObjectProtocol
  • CBLFragment protocol provides read access to the data value wrapped by a fragment object.

    See more

    Declaration

    Objective-C

    @protocol CBLFragment <NSObject>

    Swift

    protocol CBLFragmentProtocol : NSObjectProtocol
  • Listener token returned when adding a change listener. The token is used for removing the added change listener.

    Declaration

    Objective-C

    @protocol CBLListenerToken <NSObject>

    Swift

    protocol CBLListenerToken
  • Logger protocol

    See more

    Declaration

    Objective-C

    @protocol CBLLogger <NSObject>

    Swift

    protocol CBLLogger
  • ENTERPRISE EDITION ONLY.

    A delegate used by the replicator to create CBLMessageEndpointConnection objects.

    See more

    Declaration

    Objective-C

    @protocol CBLMessageEndpointDelegate

    Swift

    protocol CBLMessageEndpointDelegate
  • ENTERPRISE EDITION ONLY.

    The protocol implemented by the application using a custom transporation method to exchange replication data between peers.

    See more

    Declaration

    Objective-C

    @protocol CBLMessageEndpointConnection <NSObject>

    Swift

    protocol CBLMessageEndpointConnection : NSObjectProtocol
  • ENTERPRISE EDITION ONLY.

    The replicator connection used by the application to tell the replicator to consume the data received from the other peer or to close the connection.

    See more

    Declaration

    Objective-C

    @protocol CBLReplicatorConnection <NSObject>

    Swift

    protocol CBLReplicatorConnection : NSObjectProtocol
  • CBLMutableFragment protocol provides read and write access to the data value wrapped by a fragment object.

    See more

    Declaration

    Objective-C

    @protocol CBLMutableFragment <CBLFragment>

    Swift

    protocol CBLMutableFragmentProtocol : CBLFragmentProtocol
  • ENTERPRISE EDITION ONLY : UNCOMMITTED

    PredictiveModel protocol that allows to integrate machine learning model into CouchbaseLite Query via invoking the Function.prediction() function.

    See more

    Declaration

    Objective-C

    @protocol CBLPredictiveModel <NSObject>

    Swift

    protocol CBLPredictiveModel : NSObjectProtocol