BrowseSupportFragment.MainFragmentRowsAdapter


class BrowseSupportFragment.MainFragmentRowsAdapter<T : Fragment?>

Known direct subclasses
RowsSupportFragment.MainFragmentRowsAdapter

The adapter that RowsSupportFragment implements BrowseSupportFragment.MainFragmentRowsAdapter.


This is used to pass information to RowsSupportFragment or its subclasses. BrowseSupportFragment uses this interface to pass row based interaction events to the target fragment.

Summary

Public constructors

Public functions

RowPresenter.ViewHolder!
T!
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: T!)

Public functions

findRowViewHolderByPosition

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

Position of Row.

Returns
RowPresenter.ViewHolder!

Row ViewHolder.

getFragment

Added in 1.1.0
fun getFragment(): T!

getSelectedPosition

Added in 1.1.0
fun getSelectedPosition(): Int
Returns
Int

The position of selected row.

setAdapter

Added in 1.1.0
fun setAdapter(adapter: ObjectAdapter!): Unit

Set the visibility titles/hover of browse rows.

setOnItemViewClickedListener

Added in 1.1.0
fun setOnItemViewClickedListener(listener: OnItemViewClickedListener!): Unit

Sets an item clicked listener on the fragment.

setOnItemViewSelectedListener

Added in 1.1.0
fun setOnItemViewSelectedListener(listener: OnItemViewSelectedListener!): Unit

Sets an item selection listener.

setSelectedPosition

Added in 1.1.0
fun setSelectedPosition(rowPosition: Int, smooth: Boolean): Unit

Selects a Row.

setSelectedPosition

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

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