java.lang.Object | ||
↳ | android.support.v7.widget.RecyclerView.AdapterDataObserver | |
↳ | com.h6ah4i.android.widget.advrecyclerview.adapter.BridgeAdapterDataObserver |
This class behaves like a "proxy" which bridges RecyclerView.AdapterDataObserver events to another subscriber object.
Nested Classes | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
interface | BridgeAdapterDataObserver.Subscriber | The subscriber interface. |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
BridgeAdapterDataObserver(BridgeAdapterDataObserver.Subscriber subscriber, Adapter sourceAdapter, Object tag)
Constructor.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Object |
getTag()
Returns tag object.
| ||||||||||
void |
onChanged()
This method dispatches
onChanged() event to underlying subscriber. | ||||||||||
void |
onItemRangeChanged(int positionStart, int itemCount, Object payload)
This method dispatches
onItemRangeChanged(int, int, Object) event to underlying subscriber. | ||||||||||
void |
onItemRangeChanged(int positionStart, int itemCount)
This method dispatches
onItemRangeChanged(int, int) event to underlying subscriber. | ||||||||||
void |
onItemRangeInserted(int positionStart, int itemCount)
This method dispatches
onItemRangeInserted(int, int) event to underlying subscriber. | ||||||||||
void |
onItemRangeMoved(int fromPosition, int toPosition, int itemCount)
This method dispatches
onItemRangeMoved(int, int, int) event to underlying subscriber. | ||||||||||
void |
onItemRangeRemoved(int positionStart, int itemCount)
This method dispatches
onItemRangeRemoved(int, int) event to underlying subscriber. |
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructor.
subscriber | The subscriber object |
---|---|
sourceAdapter | The event source adapter |
tag | The tag object which users can use in any purpose. |
Returns tag object.
This method dispatches onItemRangeChanged(int, int, Object)
event to underlying subscriber.
This method dispatches onItemRangeChanged(int, int)
event to underlying subscriber.
This method dispatches onItemRangeInserted(int, int)
event to underlying subscriber.
This method dispatches onItemRangeMoved(int, int, int)
event to underlying subscriber.
This method dispatches onItemRangeRemoved(int, int)
event to underlying subscriber.