public abstract class OnRebindCallback<T extends ViewDataBinding>
extends java.lang.Object
ViewDataBinding.addOnRebindCallback(OnRebindCallback) that
 is called when bound values must be reevaluated in ViewDataBinding.executePendingBindings().| Constructor and Description | 
|---|
| OnRebindCallback() | 
| Modifier and Type | Method and Description | 
|---|---|
| void | onBound(T binding)Called after values have been reevaluated in  ViewDataBinding.executePendingBindings(). | 
| void | onCanceled(T binding)Called after all callbacks have completed  onPreBind(ViewDataBinding)when
 one or more of the calls has returnedfalse. | 
| boolean | onPreBind(T binding)Called when values in a ViewDataBinding should be reevaluated. | 
public boolean onPreBind(T binding)
 Return true to allow the reevaluation to happen or false if the reevaluation
 should be stopped. If false is returned, it is the responsibility of the
 OnRebindListener implementer to explicitly call ViewDataBinding.executePendingBindings().
 
 The default implementation only returns true.
binding - The ViewDataBinding that is reevaluating its bound values.public void onCanceled(T binding)
onPreBind(ViewDataBinding) when
 one or more of the calls has returned false.
 The default implementation does nothing.
binding - The ViewDataBinding that is reevaluating its bound values.public void onBound(T binding)
ViewDataBinding.executePendingBindings(). This is only called if all listeners have
 returned true from onPreBind(ViewDataBinding).
 The default implementation does nothing.
binding - The ViewDataBinding that is reevaluating its bound values.