ListChangeRegistry
  public
  
  
  
  class
  ListChangeRegistry
  
  
  
  
    extends CallbackRegistry<OnListChangedCallback, ObservableList, ListChangeRegistry.ListChanges>
  
  
  
  
  
  
| java.lang.Object | ||
| ↳ | android.databinding.CallbackRegistry<android.databinding.ObservableList.OnListChangedCallback, android.databinding.ObservableList, android.databinding.ListChangeRegistry.ListChanges> | |
| ↳ | android.databinding.ListChangeRegistry | |
Utility class for managing ObservableList callbacks.
Summary
| Public constructors | |
|---|---|
| 
      ListChangeRegistry()
       | |
| Public methods | |
|---|---|
| 
        
        
        
        
        
        void | 
      notifyCallbacks(ObservableList sender, int notificationType, ListChangeRegistry.ListChanges listChanges)
      Notify all callbacks. | 
| 
        
        
        
        
        
        void | 
      notifyChanged(ObservableList list, int start, int count)
      Notify registered callbacks that some elements have changed. | 
| 
        
        
        
        
        
        void | 
      notifyChanged(ObservableList list)
      Notify registered callbacks that there was an unknown or whole-list change. | 
| 
        
        
        
        
        
        void | 
      notifyInserted(ObservableList list, int start, int count)
      Notify registered callbacks that elements were inserted. | 
| 
        
        
        
        
        
        void | 
      notifyMoved(ObservableList list, int from, int to, int count)
      Notify registered callbacks that elements were moved. | 
| 
        
        
        
        
        
        void | 
      notifyRemoved(ObservableList list, int start, int count)
      Notify registered callbacks that elements were deleted. | 
| Inherited methods | |
|---|---|
|  From
class 
  
    android.databinding.CallbackRegistry
  
 | |
|  From
class 
  
    java.lang.Object
  
 | |
Public constructors
ListChangeRegistry
ListChangeRegistry ()
Public methods
notifyCallbacks
void notifyCallbacks (ObservableList sender, int notificationType, ListChangeRegistry.ListChanges listChanges)
Notify all callbacks.
| Parameters | |
|---|---|
| sender | ObservableList: The originator. This is an opaque parameter passed toonNotifyCallback(Object, Object, int, Object) | 
| notificationType | int: An opaque parameter passed toonNotifyCallback(Object, Object, int, Object) | 
| listChanges | ListChangeRegistry.ListChanges: An opaque parameter passed toonNotifyCallback(Object, Object, int, Object) | 
notifyChanged
void notifyChanged (ObservableList list, int start, int count)
Notify registered callbacks that some elements have changed.
| Parameters | |
|---|---|
| list | ObservableList: The list that changed. | 
| start | int: The index of the first changed element. | 
| count | int: The number of changed elements. | 
notifyChanged
void notifyChanged (ObservableList list)
Notify registered callbacks that there was an unknown or whole-list change.
| Parameters | |
|---|---|
| list | ObservableList: The list that changed. | 
notifyInserted
void notifyInserted (ObservableList list, int start, int count)
Notify registered callbacks that elements were inserted.
| Parameters | |
|---|---|
| list | ObservableList: The list that changed. | 
| start | int: The index where the elements were inserted. | 
| count | int: The number of elements that were inserted. | 
notifyMoved
void notifyMoved (ObservableList list, int from, int to, int count)
Notify registered callbacks that elements were moved.
| Parameters | |
|---|---|
| list | ObservableList: The list that changed. | 
| from | int: The index of the first element moved. | 
| to | int: The index of where the element was moved to. | 
| count | int: The number of elements moved. | 
notifyRemoved
void notifyRemoved (ObservableList list, int start, int count)
Notify registered callbacks that elements were deleted.
| Parameters | |
|---|---|
| list | ObservableList: The list that changed. | 
| start | int: The index of the first element to be removed. | 
| count | int: The number of elements removed. | 
- Annotations
- Interfaces
- Classes- BaseObservable
- CallbackRegistry
- CallbackRegistry.NotifierCallback
- DataBindingUtil
- ListChangeRegistry
- MapChangeRegistry
- MergedDataBinderMapper
- Observable.OnPropertyChangedCallback
- ObservableArrayList
- ObservableArrayMap
- ObservableBoolean
- ObservableByte
- ObservableChar
- ObservableDouble
- ObservableField
- ObservableFloat
- ObservableInt
- ObservableList.OnListChangedCallback
- ObservableLong
- ObservableMap.OnMapChangedCallback
- ObservableParcelable
- ObservableShort
- OnRebindCallback
- PropertyChangeRegistry
- ViewDataBinding
- ViewStubProxy
 
