Register now for Android Dev Summit 2019!

MainFragmentRowsAdapter

open class MainFragmentRowsAdapter : BrowseSupportFragment.MainFragmentRowsAdapter<RowsSupportFragment!>
kotlin.Any
   ↳ androidx.leanback.app.BrowseSupportFragment.MainFragmentRowsAdapter<androidx.leanback.app.RowsSupportFragment>
   ↳ androidx.leanback.app.RowsSupportFragment.MainFragmentRowsAdapter

The adapter that RowsSupportFragment implements BrowseSupportFragment.MainFragmentRowsAdapter.

Summary

Public constructors

Public methods

open RowPresenter.ViewHolder!

open Int

open Unit

open Unit

Sets an item clicked listener on the fragment.

open Unit

open Unit
setSelectedPosition(rowPosition: Int, smooth: Boolean, rowHolderTask: Presenter.ViewHolderTask!)

open Unit
setSelectedPosition(rowPosition: Int, smooth: Boolean)

Inherited functions

Public constructors

<init>

MainFragmentRowsAdapter(fragment: RowsSupportFragment!)

Public methods

findRowViewHolderByPosition

open fun findRowViewHolderByPosition(position: Int): RowPresenter.ViewHolder!

getSelectedPosition

open fun getSelectedPosition(): Int

setAdapter

open fun setAdapter(adapter: ObjectAdapter!): Unit

setOnItemViewClickedListener

open fun setOnItemViewClickedListener(listener: OnItemViewClickedListener!): Unit

Sets an item clicked listener on the fragment.

setOnItemViewSelectedListener

open fun setOnItemViewSelectedListener(listener: OnItemViewSelectedListener!): Unit

setSelectedPosition

open fun setSelectedPosition(rowPosition: Int, smooth: Boolean, rowHolderTask: Presenter.ViewHolderTask!): Unit

setSelectedPosition

open fun setSelectedPosition(rowPosition: Int, smooth: Boolean): Unit