Interface IChangeObservable<TEventType>
An interface describing an object that can have a change listener added to it
Inherited Members
Namespace: Couchbase.Lite
Assembly: Couchbase.Lite.dll
Syntax
public interface IChangeObservable<TEventType> : IChangeObservableRemovable where TEventType : EventArgs
Type Parameters
| Name | Description |
|---|---|
| TEventType | The type of arguments used by the change listener |
Methods
| Improve this Doc View SourceAddChangeListener(EventHandler<TEventType>)
Adds a change listener using the default TaskScheduler
Declaration
ListenerToken AddChangeListener(EventHandler<TEventType> handler)
Parameters
| Type | Name | Description |
|---|---|---|
| System.EventHandler<TEventType> | handler | The handler that the change listener should use to call back |
Returns
| Type | Description |
|---|---|
| ListenerToken | A token to remove the change listener later |
AddChangeListener(TaskScheduler, EventHandler<TEventType>)
Adds a change listener that executes using the provided TaskScheduler
Declaration
ListenerToken AddChangeListener(TaskScheduler scheduler, EventHandler<TEventType> handler)
Parameters
| Type | Name | Description |
|---|---|---|
| System.Threading.Tasks.TaskScheduler | scheduler | The scheduler to use (will use a default if null) |
| System.EventHandler<TEventType> | handler | The handler that the change listener should use to call back |
Returns
| Type | Description |
|---|---|
| ListenerToken | A token to remove the change listener later |