DatabaseAddDocumentChangeListener Method (String, EventHandlerDocumentChangedEventArgs) |
Adds a listener for changes on a certain document (by ID).
Namespace:
Couchbase.Lite
Assembly:
Couchbase.Lite (in Couchbase.Lite.dll) Version: 2.0.0-b0520
Syntax public ListenerToken AddDocumentChangeListener(
string id,
EventHandler<DocumentChangedEventArgs> handler
)
Parameters
- id
- Type: SystemString
The ID to add the listener for - handler
- Type: SystemEventHandlerDocumentChangedEventArgs
The logic to handle the event
Return Value
Type:
ListenerTokenA token that can be used to remove the listener later
See Also