Save the date! Android Dev Summit is coming to Mountain View, CA on November 7-8, 2018.

Observable.OnPropertyChangedCallback

public static abstract class Observable.OnPropertyChangedCallback
extends Object

java.lang.Object
   ↳ android.databinding.Observable.OnPropertyChangedCallback


The callback that is called by Observable when an observable property has changed.

Summary

Public constructors

Observable.OnPropertyChangedCallback()

Public methods

abstract void onPropertyChanged(Observable sender, int propertyId)

Called by an Observable whenever an observable property changes.

Inherited methods

From class java.lang.Object

Public constructors

Observable.OnPropertyChangedCallback

Observable.OnPropertyChangedCallback ()

Public methods

onPropertyChanged

void onPropertyChanged (Observable sender, 
                int propertyId)

Called by an Observable whenever an observable property changes.

Parameters
sender Observable: The Observable that is changing.

propertyId int: The BR identifier of the property that has changed. The getter for this property should be annotated with Bindable.