InvalidationTracker.Observer
-
android
abstract class InvalidationTracker.Observer
An observer that can listen for changes in the database by subscribing to an InvalidationTracker
.
Summary
Protected constructors |
|
---|---|
Creates an observer for the given tables and views. |
android
|
Public functions |
||
---|---|---|
abstract Unit |
onInvalidated(tables: Set<String>) Invoked when one of the observed tables is invalidated (changed). |
android
|
Public functions
onInvalidated
abstract fun onInvalidated(tables: Set<String>): Unit
Invoked when one of the observed tables is invalidated (changed).
Parameters | |
---|---|
tables: Set<String> |
A set of invalidated tables. When the observer is interested in multiple tables, this set can be used to distinguish which of the observed tables were invalidated. When observing a database view the names of underlying tables will be in the set instead of the view name. |