public class BaseObservable
extends java.lang.Object
implements android.databinding.Observable
Observable
interface and provides
notifyPropertyChanged(int)
and notifyChange()
methods.Constructor and Description |
---|
BaseObservable() |
Modifier and Type | Method and Description |
---|---|
void |
addOnPropertyChangedCallback(android.databinding.Observable.OnPropertyChangedCallback callback) |
void |
notifyChange()
Notifies listeners that all properties of this instance have changed.
|
void |
notifyPropertyChanged(int fieldId)
Notifies listeners that a specific property has changed.
|
void |
removeOnPropertyChangedCallback(android.databinding.Observable.OnPropertyChangedCallback callback) |
public void addOnPropertyChangedCallback(android.databinding.Observable.OnPropertyChangedCallback callback)
addOnPropertyChangedCallback
in interface android.databinding.Observable
public void removeOnPropertyChangedCallback(android.databinding.Observable.OnPropertyChangedCallback callback)
removeOnPropertyChangedCallback
in interface android.databinding.Observable
public void notifyChange()
public void notifyPropertyChanged(int fieldId)
Bindable
to generate a field in
BR
to be used as fieldId
.fieldId
- The generated BR id for the Bindable field.