observe
Observe the data object.
The data object will notify its Observer in the following scenarios:
When the observation starts: LiveData.observe.
When the Observer moves from not observing to observing.
When the value changes: LiveData.getValue.
Parameters
owner
The lifetime for which to observe the data object, after which it will be removed.
observer
The object observing the change.