RowsSupportFragment.MainFragmentRowsAdapter


class RowsSupportFragment.MainFragmentRowsAdapter : BrowseSupportFragment.MainFragmentRowsAdapter


The adapter that RowsSupportFragment implements BrowseSupportFragment.MainFragmentRowsAdapter.

Summary

Public constructors

Public functions

RowPresenter.ViewHolder!
Int
Unit

Set the visibility titles/hover of browse rows.

Unit

Sets an item clicked listener on the fragment.

Unit

Sets an item selection listener.

Unit
setSelectedPosition(rowPosition: Int, smooth: Boolean)

Selects a Row.

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

Selects a Row and perform an optional task on the Row.

Public constructors

MainFragmentRowsAdapter

Added in 1.1.0
MainFragmentRowsAdapter(fragment: RowsSupportFragment!)

Public functions

findRowViewHolderByPosition

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

Position of Row.

Returns
RowPresenter.ViewHolder!

Row ViewHolder.

getSelectedPosition

fun getSelectedPosition(): Int
Returns
Int

The position of selected row.

setAdapter

fun setAdapter(adapter: ObjectAdapter!): Unit

Set the visibility titles/hover of browse rows.

setOnItemViewClickedListener

fun setOnItemViewClickedListener(listener: OnItemViewClickedListener!): Unit

Sets an item clicked listener on the fragment.

setOnItemViewSelectedListener

fun setOnItemViewSelectedListener(listener: OnItemViewSelectedListener!): Unit

Sets an item selection listener.

setSelectedPosition

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

Selects a Row.

setSelectedPosition

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

Selects a Row and perform an optional task on the Row.