SectionRow

class SectionRow : Row


Used to represent section item in HeadersFragment. Unlike a normal Row, it's not focusable.

Summary

Public constructors

SectionRow(headerItem: HeaderItem!)
SectionRow(id: Long, name: String!)

Public functions

Boolean

Returns true if this Row can be rendered in a visible row view, false otherwise.

Inherited functions

From androidx.leanback.widget.Row
HeaderItem!

Returns the HeaderItem that represents metadata for the row.

Long

Returns a unique identifier for this row.

Unit
setHeaderItem(headerItem: HeaderItem!)

Sets the HeaderItem that represents metadata for the row.

Unit
setId(id: Long)

Sets the id for this row.

Public constructors

SectionRow

Added in 1.1.0
SectionRow(headerItem: HeaderItem!)

SectionRow

Added in 1.1.0
SectionRow(name: String!)

SectionRow

Added in 1.1.0
SectionRow(id: Long, name: String!)

Public functions

isRenderedAsRowView

Added in 1.2.0-alpha04
fun isRenderedAsRowView(): Boolean

Returns true if this Row can be rendered in a visible row view, false otherwise. For example ListRow is rendered by ListRowPresenter. PageRow, SectionRow, DividerRow are rendered as invisible row views.

Returns
Boolean

True if this Row can be rendered in a visible row view, false otherwise.