Click or drag to resize

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
C#
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: ListenerToken
A token that can be used to remove the listener later
See Also