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-b0469
Syntax public ListenerToken AddDocumentChangeListener(
string documentID,
EventHandler<DocumentChangedEventArgs> handler
)
Parameters
- documentID
- 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