public static interface

BridgeAdapterDataObserver.Subscriber

com.h6ah4i.android.widget.advrecyclerview.adapter.BridgeAdapterDataObserver.Subscriber
Known Indirect Subclasses

Class Overview

The subscriber interface.

Summary

Public Methods
abstract void onBridgedAdapterChanged(Adapter source, Object tag)
Routed onChanged() event.
abstract void onBridgedAdapterItemRangeChanged(Adapter source, Object tag, int positionStart, int itemCount)
abstract void onBridgedAdapterItemRangeChanged(Adapter source, Object tag, int positionStart, int itemCount, Object payload)
abstract void onBridgedAdapterItemRangeInserted(Adapter source, Object tag, int positionStart, int itemCount)
abstract void onBridgedAdapterItemRangeRemoved(Adapter source, Object tag, int positionStart, int itemCount)
abstract void onBridgedAdapterRangeMoved(Adapter source, Object tag, int fromPosition, int toPosition, int itemCount)

Public Methods

public abstract void onBridgedAdapterChanged (Adapter source, Object tag)

Routed onChanged() event.

Parameters
source The source adapter
tag The tag object
See Also
  • {@link RecyclerView.AdapterDataObserver#onChanged()}

public abstract void onBridgedAdapterItemRangeChanged (Adapter source, Object tag, int positionStart, int itemCount)

Parameters
source The source adapter
tag The tag object
positionStart Position of the first item that has changed
itemCount Number of items that have changed
See Also
  • {@link RecyclerView.AdapterDataObserver#onItemRangeChanged(int, int)}

public abstract void onBridgedAdapterItemRangeChanged (Adapter source, Object tag, int positionStart, int itemCount, Object payload)

Parameters
source The source adapter
tag The tag object
positionStart Position of the first item that has changed
itemCount Number of items that have changed
payload Optional parameter, use null to identify a "full" update
See Also
  • {@link RecyclerView.AdapterDataObserver#onItemRangeChanged(int, int, Object)}

public abstract void onBridgedAdapterItemRangeInserted (Adapter source, Object tag, int positionStart, int itemCount)

Parameters
source The source adapter
tag The tag object
positionStart Position of the first item that was inserted
itemCount Number of items inserted
See Also
  • {@link RecyclerView.AdapterDataObserver#onItemRangeInserted(int, int)}

public abstract void onBridgedAdapterItemRangeRemoved (Adapter source, Object tag, int positionStart, int itemCount)

Parameters
source The source adapter
tag The tag object
positionStart Previous position of the first item that was removed
itemCount Number of items removed from the data set
See Also
  • {@link RecyclerView.AdapterDataObserver#onItemRangeRemoved(int, int)}}

public abstract void onBridgedAdapterRangeMoved (Adapter source, Object tag, int fromPosition, int toPosition, int itemCount)

Parameters
source The source adapter
tag The tag object
fromPosition Previous position of the item.
toPosition New position of the item.
itemCount Number of items moved (NOTE: this parameter is not actually used, always 1.)
See Also
  • {@link RecyclerView.AdapterDataObserver#onItemRangeChanged(int, int, Object)}