Show / Hide Table of Contents

Interface IDocumentReplicatedObservable

An interface describing an object that can add a change listener for when a document is replicated

Inherited Members
IChangeObservableRemovable.RemoveChangeListener(ListenerToken)
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public interface IDocumentReplicatedObservable : IChangeObservableRemovable

Methods

| Improve this Doc View Source

AddDocumentReplicationListener(EventHandler<DocumentReplicationEventArgs>)

Adds a change listener using the default TaskScheduler

Declaration
ListenerToken AddDocumentReplicationListener(EventHandler<DocumentReplicationEventArgs> handler)
Parameters
Type Name Description
System.EventHandler<DocumentReplicationEventArgs> handler

The handler that the change listener should use to call back

Returns
Type Description
ListenerToken

A token to remove the change listener later

| Improve this Doc View Source

AddDocumentReplicationListener(TaskScheduler, EventHandler<DocumentReplicationEventArgs>)

Adds a change listener that executes using the provided TaskScheduler

Declaration
ListenerToken AddDocumentReplicationListener(TaskScheduler scheduler, EventHandler<DocumentReplicationEventArgs> handler)
Parameters
Type Name Description
System.Threading.Tasks.TaskScheduler scheduler

The scheduler to use (will use a default if null)

System.EventHandler<DocumentReplicationEventArgs> handler

The handler that the change listener should use to call back

Returns
Type Description
ListenerToken

A token to remove the change listener later

  • Improve this Doc
  • View Source
In This Article
Back to top Generated by DocFX