public class ItemBridgeAdapter
extends Adapter implements FacetProviderAdapter

   ↳ androidx.recyclerview.widget.RecyclerView.Adapter
     ↳ androidx.leanback.widget.ItemBridgeAdapter

Bridge from Presenter to RecyclerView.Adapter. Public to allow use by third party Presenters.


Nested classes

class ItemBridgeAdapter.AdapterListener

Interface for listening to ViewHolder operations. 

class ItemBridgeAdapter.ViewHolder

ViewHolder for the ItemBridgeAdapter. 

class ItemBridgeAdapter.Wrapper

Interface for wrapping a view created by a Presenter into another view. 

Public constructors

ItemBridgeAdapter(ObjectAdapter adapter, PresenterSelector presenterSelector)
ItemBridgeAdapter(ObjectAdapter adapter)

Public methods

void clear()

Clears the adapter.

FacetProvider getFacetProvider(int type)

Queries FacetProvider for a given type within Adapter.

int getItemCount()

Returns the total number of items in the data set held by the adapter.

long getItemId(int position)

Return the stable ID for the item at position.

int getItemViewType(int position)

Return the view type of the item at position for the purposes of view recycling.

ArrayList<Presenter> getPresenterMapper()

Returns the presenter mapper array.

ItemBridgeAdapter.Wrapper getWrapper()

Returns the ItemBridgeAdapter.Wrapper.

final void onBindViewHolder(RecyclerView.ViewHolder holder, int position, List payloads)

Called by RecyclerView to display the data at the specified position.