class RowBuilderDsl : ListBuilder.RowBuilder


Helper class annotated with @SliceMarker, which is annotated with @DslMarker. Two implicit receivers that are annotated with @SliceMarker are not accessible in the same scope, ensuring a type-safe DSL.

Summary

Public constructors

Inherited functions

From androidx.slice.builders.ListBuilder.RowBuilder
ListBuilder.RowBuilder

Adds an action to the end items of the row builder.

ListBuilder.RowBuilder
addEndItem(timeStamp: Long)

Adds a timestamp to the end items of the row builder.

ListBuilder.RowBuilder
addEndItem(action: SliceAction, isLoading: Boolean)

Adds an action to the end items of the row builder.

ListBuilder.RowBuilder
addEndItem(icon: IconCompat, imageMode: Int)

Adds an icon to the end items of the row builder.

ListBuilder.RowBuilder
addEndItem(icon: IconCompat?, imageMode: Int, isLoading: Boolean)

Adds an icon to the end items of the row builder.

ListBuilder.RowBuilder

Sets the content description for the row.

ListBuilder.RowBuilder

The action specified here will be sent when the whole row is clicked.

ListBuilder.RowBuilder

Sets the subtitle for the row builder.

ListBuilder.RowBuilder
setSubtitle(subtitle: CharSequence?, isLoading: Boolean)

Sets the subtitle for the row builder.

ListBuilder.RowBuilder

Sets the title for the row builder.

ListBuilder.RowBuilder
setTitle(title: CharSequence?, isLoading: Boolean)

Sets the title for the row builder.

ListBuilder.RowBuilder

Sets the title item to be a tappable icon.

ListBuilder.RowBuilder
setTitleItem(timeStamp: Long)

Sets the title item to be the provided timestamp.

ListBuilder.RowBuilder
setTitleItem(action: SliceAction, isLoading: Boolean)

Sets the title item to be a tappable icon.

ListBuilder.RowBuilder
setTitleItem(icon: IconCompat, imageMode: Int)

Sets the title item to be the provided icon.

ListBuilder.RowBuilder
setTitleItem(icon: IconCompat?, imageMode: Int, isLoading: Boolean)

Sets the title item to be the provided icon.

Public constructors

RowBuilderDsl

Added in 1.0.0-alpha08
RowBuilderDsl()