pub unsafe extern "C" fn c4docobs_createWithCollection(
collection: *mut C4Collection,
docID: C4String,
callback: C4DocumentObserverCallback,
context: *mut c_void,
error: *mut C4Error,
) -> *mut C4DocumentObserverExpand description
Creates a new document observer, with a callback that will be invoked when the document changes. \note This is exactly like \ref c4docobs_create, except that it works on any collection. @param collection The collection containing the document to observe. @param docID The ID of the document to observe. @param callback The function to call after the database changes. @param context An arbitrary value that will be passed to the callback. @return The new observer reference.