Package androidx.databinding
Class Observable.OnPropertyChangedCallback
- java.lang.Object
-
- androidx.databinding.Observable.OnPropertyChangedCallback
-
- Enclosing interface:
- Observable
public abstract static class Observable.OnPropertyChangedCallback extends java.lang.ObjectThe callback that is called by Observable when an observable property has changed.
-
-
Constructor Summary
Constructors Constructor Description OnPropertyChangedCallback()
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description abstract voidonPropertyChanged(Observable sender, int propertyId)Called by an Observable whenever an observable property changes.
-
-
-
Method Detail
-
onPropertyChanged
public abstract void onPropertyChanged(Observable sender, int propertyId)
Called by an Observable whenever an observable property changes.- Parameters:
sender- The Observable that is changing.propertyId- The BR identifier of the property that has changed. The getter for this property should be annotated withBindable.
-
-