ContentProvider::Observer¶
-
class
kanzi::connect::ContentProvider
::
Observer
Allows to monitor changes in Content Provider.
Subclassed by ContentProviderCollection, ContentSubscription
Public Functions
-
~Observer
() Virtual destructor (for SWIG).
-
void
onChanged
(ContentProvider *provider, const string &uri, bool async) Callback to notify that change has occurred in given content provider.
- Parameters
provider
: Content Provider that changed.uri
: Uri within Content Provider domain that changed.async
: Boolean indicating whether changes need to propagate to subscribers immediately, or is it ok to process the queries asynchronously.
-
void
onInvalidated
(ContentProvider *provider, const string &uri, int reason, int beginRow, int endRow) Callback to notify invalidation of content provider.
- Parameters
provider
: Content provider that changed.reason
: the reason for invalidation. Not currently used.beginRow
: inclusive start row of the change. Not currently used.endRow
: inclusive end row of the change. Not currently used.
-