Most visited

Recently visited

Observable.OnPropertyChangedCallback

public static abstract class Observable.OnPropertyChangedCallback
extends Object

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


observable属性发生变化时由Observable调用的回调函数。

Summary

Public constructors

Observable.OnPropertyChangedCallback()

Public methods

abstract void onPropertyChanged(Observable sender, int propertyId)

每当可观察属性发生变化时,由可观察对象调用。

Inherited methods

From class java.lang.Object

Public constructors

Observable.OnPropertyChangedCallback

Observable.OnPropertyChangedCallback ()

Public methods

onPropertyChanged

void onPropertyChanged (Observable sender, 
                int propertyId)

每当可观察属性发生变化时,由可观察对象调用。

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.

Hooray!