ListRow


class ListRow : Row


A Row composed of a optional HeaderItem, and an ObjectAdapter describing the items in the list.

Summary

Public constructors

ListRow(header: HeaderItem!, adapter: ObjectAdapter!)
ListRow(id: Long, header: HeaderItem!, adapter: ObjectAdapter!)

Public functions

ObjectAdapter!

Returns the ObjectAdapter that represents a list of objects.

CharSequence!

Returns content description for the ListRow.

Unit
setContentDescription(contentDescription: CharSequence!)

Explicitly set content description for the ListRow, getContentDescription will ignore values from HeaderItem.

Inherited functions

HeaderItem!

Returns the HeaderItem that represents metadata for the row.

Long

Returns a unique identifier for this row.

Boolean

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

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

ListRow

Added in 1.1.0
ListRow(adapter: ObjectAdapter!)

ListRow

Added in 1.1.0
ListRow(header: HeaderItem!, adapter: ObjectAdapter!)

ListRow

Added in 1.1.0
ListRow(id: Long, header: HeaderItem!, adapter: ObjectAdapter!)

Public functions

getAdapter

Added in 1.1.0
fun getAdapter(): ObjectAdapter!

Returns the ObjectAdapter that represents a list of objects.

getContentDescription

Added in 1.1.0
fun getContentDescription(): CharSequence!

Returns content description for the ListRow. By default it returns getContentDescription or getName, unless setContentDescription was explicitly called.

Returns
CharSequence!

Content description for the ListRow.

setContentDescription

Added in 1.1.0
fun setContentDescription(contentDescription: CharSequence!): Unit

Explicitly set content description for the ListRow, getContentDescription will ignore values from HeaderItem.

Parameters
contentDescription: CharSequence!

Content description sets on the ListRow.