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
open ListBuilder.RowBuilder

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

open ListBuilder.RowBuilder
addEndItem(timeStamp: Long)

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

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

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

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

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

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

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

open ListBuilder.RowBuilder

Sets the content description for the row.

open ListBuilder.RowBuilder
setEndOfSection(isEndOfSection: Boolean)

Indicate that this row is an end for a section.

open ListBuilder.RowBuilder
setLayoutDirection(layoutDirection: Int)

Sets the desired layout direction for the content in this row.

open ListBuilder.RowBuilder

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

open ListBuilder.RowBuilder

Sets the subtitle for the row builder.

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

Sets the subtitle for the row builder.

open ListBuilder.RowBuilder

Sets the title for the row builder.

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

Sets the title for the row builder.

open ListBuilder.RowBuilder

Sets the title item to be a tappable icon.

open ListBuilder.RowBuilder
setTitleItem(timeStamp: Long)

Sets the title item to be the provided timestamp.

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

Sets the title item to be a tappable icon.

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

Sets the title item to be the provided icon.

open 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()