On Android you can add ChangeListener's on the following objects: * Database * Document * LiveQuery
which will be called back when these objects change due to underlying changes in the database. On Mon, Jan 20, 2014 at 10:23 AM, PRASASNNA KUMAR < [email protected]> wrote: > Hi > We need solution for android > > Thank's > > On Monday, January 20, 2014 11:25:10 PM UTC+5:30, Jens Alfke wrote: > >> >> On Jan 20, 2014, at 3:55 AM, Srinivas Tirumala <[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/5a149c62-706e-48e9-a869-800b6be41f68%40googlegroups.com > . > > For more options, visit https://groups.google.com/groups/opt_out. > -- 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/CACSSHCFPMbnF%3DdG8W2ry5ue417Q%3DbYvhk4C73eGukAhq%3D%3D%2B42A%40mail.gmail.com. For more options, visit https://groups.google.com/groups/opt_out.
