Interface IDocumentChangeObservable
An interface describing an object that can add a change listener at a Document level
Inherited Members
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public interface IDocumentChangeObservable : IChangeObservableRemovable
Methods
| Improve this Doc View SourceAddDocumentChangeListener(String, EventHandler<DocumentChangedEventArgs>)
Adds a change listener that executes using the default TaskScheduler
Declaration
ListenerToken AddDocumentChangeListener(string id, EventHandler<DocumentChangedEventArgs> handler)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The ID of the document to monitor |
System.EventHandler<DocumentChangedEventArgs> | handler | The handler that the change listener should use to call back |
Returns
Type | Description |
---|---|
ListenerToken | A token to remove the change listener later |
AddDocumentChangeListener(String, TaskScheduler, EventHandler<DocumentChangedEventArgs>)
Adds a change listener that executes using the provided TaskScheduler
Declaration
ListenerToken AddDocumentChangeListener(string id, TaskScheduler scheduler, EventHandler<DocumentChangedEventArgs> handler)
Parameters
Type | Name | Description |
---|---|---|
System.String | id | The ID of the document to monitor |
System.Threading.Tasks.TaskScheduler | scheduler | The scheduler to use (will use a default if null) |
System.EventHandler<DocumentChangedEventArgs> | handler | The handler that the change listener should use to call back |
Returns
Type | Description |
---|---|
ListenerToken | A token to remove the change listener later |