Interface IDocumentReplicatedObservable
An interface describing an object that can add a change listener for when a document is replicated
Inherited Members
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public interface IDocumentReplicatedObservable : IChangeObservableRemovable
Methods
| Improve this Doc View SourceAddDocumentReplicationListener(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 |
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 |