On Jan 20, 2014, at 3:55 AM, Srinivas Tirumala 
<[email protected]<mailto:[email protected]>> wrote:

Is there any listners or methods which will notify us the data changed in 
Couchbase server so that we can update on UI.
For example i changed project name from abc to abcd ,to update ui is there any 
listners which will listen for database changes.

There are quite a few ways:


 *   Observe kCBLDatabaseChangeNotification, as Andrew points out; or
 *   If you have a CBLDocument instance, observe kCBLDocumentChangeNotification 
posted by it; or
 *   If you have a CBLModel instance on a document, use KVO to observe property 
changes; or
 *   Start a CBLLiveQuery and use KVO to observe changes to its .rows property

—Jens

-- 
You received this message because you are subscribed to the Google Groups 
"Couchbase Mobile" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion on the web visit 
https://groups.google.com/d/msgid/mobile-couchbase/59C225EB-0BA7-4FC7-8611-D7A32D2F5EE5%40couchbase.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to