Google は、黒人コミュニティに対する人種平等の促進に取り組んでいます。取り組みを見る

ItemBridgeAdapter

open class ItemBridgeAdapter : RecyclerView.Adapter<RecyclerView.ViewHolder!>, FacetProviderAdapter
kotlin.Any
   ↳ androidx.recyclerview.widget.RecyclerView.Adapter<androidx.recyclerview.widget.RecyclerView.ViewHolder>
   ↳ androidx.leanback.widget.ItemBridgeAdapter

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

Summary

Nested classes
open

Interface for listening to ViewHolder operations.

open

ViewHolder for the ItemBridgeAdapter.

abstract

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

Public constructors
<init>(adapter: ObjectAdapter!, presenterSelector: PresenterSelector!)

<init>(adapter: ObjectAdapter!)

Public methods
open Unit

Clears the adapter.

open FacetProvider!

open Int

open Long
getItemId(position: Int)

open Int
getItemViewType(position: Int)

open ArrayList<Presenter!>!

Returns the presenter mapper array.

open ItemBridgeAdapter.Wrapper!

Returns the Wrapper.

Unit

Unit
onBindViewHolder(holder: RecyclerView.ViewHolder, position: Int, payloads: MutableList<Any?>)

RecyclerView.ViewHolder
onCreateViewHolder(parent: ViewGroup, viewType: Int)

View.OnFocusChangeListener that assigned in Presenter#onCreateViewHolder(ViewGroup) may be chained, user should never change View.OnFocusChangeListener after that.

Boolean

Unit

Unit

Unit

open Unit

Sets the ObjectAdapter.

open Unit

Sets the AdapterListener.

open Unit
setPresenter(presenterSelector: PresenterSelector!)

Changes Presenter that creates and binds the view.

open Unit

Sets the presenter mapper array.

open Unit

Sets the Wrapper.

Protected methods
open Unit
onAddPresenter(presenter: Presenter!, type: Int)

Called when presenter is added to Adapter.

open Unit

Called when ViewHolder has been attached to window.

open Unit

Called when ViewHolder has been bound to data.

open Unit

Called when ViewHolder is created.

open Unit

Called when ViewHolder has been detached from window.

open Unit

Called when ViewHolder has been unbound from data.

Inherited functions

Public constructors

<init>

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