java.lang.Object | |
↳ | android.databinding.BaseObservable |
Known Direct Subclasses |
Known Indirect Subclasses
ObservableParcelable<T extends Parcelable>
|
A convenience class that implements Observable
interface and provides
notifyPropertyChanged(int)
and notifyChange()
methods.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Adds a callback to listen for changes to the Observable.
| |||||||||||
Notifies listeners that all properties of this instance have changed.
| |||||||||||
Notifies listeners that a specific property has changed.
| |||||||||||
Removes a callback from those listening for changes.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
| |||||||||||
From interface
android.databinding.Observable
|
Adds a callback to listen for changes to the Observable.
callback | The callback to start listening. |
---|
Notifies listeners that all properties of this instance have changed.
Notifies listeners that a specific property has changed. The getter for the property
that changes should be marked with Bindable
to generate a field in
BR
to be used as fieldId
.
fieldId | The generated BR id for the Bindable field. |
---|
Removes a callback from those listening for changes.
callback | The callback that should stop listening. |
---|