Android APIs
public class

ListChangeRegistry

extends CallbackRegistry<OnListChangedCallbackObservableList, ListChangeRegistry.ListChanges>
java.lang.Object
   ↳ android.databinding.CallbackRegistry<android.databinding.ObservableList.OnListChangedCallbackandroid.databinding.ObservableList, android.databinding.ListChangeRegistry.ListChanges>
     ↳ android.databinding.ListChangeRegistry

Class Overview

Utility class for managing ObservableList callbacks.

Summary

Public Constructors
ListChangeRegistry()
Public Methods
synchronized 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.
[Expand]
Inherited Methods
From class android.databinding.CallbackRegistry
From class java.lang.Object

Public Constructors

public ListChangeRegistry ()

Public Methods

public synchronized void notifyCallbacks (ObservableList sender, int notificationType, ListChangeRegistry.ListChanges listChanges)

Notify all callbacks.

Parameters
sender The originator. This is an opaque parameter passed to onNotifyCallback(Object, Object, int, Object)
notificationType An opaque parameter passed to onNotifyCallback(Object, Object, int, Object)
listChanges An opaque parameter passed to onNotifyCallback(Object, Object, int, Object)

public void notifyChanged (ObservableList list, int start, int count)

Notify registered callbacks that some elements have changed.

Parameters
list The list that changed.
start The index of the first changed element.
count The number of changed elements.

public void notifyChanged (ObservableList list)

Notify registered callbacks that there was an unknown or whole-list change.

Parameters
list The list that changed.

public void notifyInserted (ObservableList list, int start, int count)

Notify registered callbacks that elements were inserted.

Parameters
list The list that changed.
start The index where the elements were inserted.
count The number of elements that were inserted.

public void notifyMoved (ObservableList list, int from, int to, int count)

Notify registered callbacks that elements were moved.

Parameters
list The list that changed.
from The index of the first element moved.
to The index of where the element was moved to.
count The number of elements moved.

public void notifyRemoved (ObservableList list, int start, int count)

Notify registered callbacks that elements were deleted.

Parameters
list The list that changed.
start The index of the first element to be removed.
count The number of elements removed.