CellBuilderDsl


class CellBuilderDsl : GridRowBuilder.CellBuilder


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.GridRowBuilder.CellBuilder
GridRowBuilder.CellBuilder
addImage(image: IconCompat, imageMode: Int)

Adds an image to the cell.

GridRowBuilder.CellBuilder
addImage(image: IconCompat?, imageMode: Int, isLoading: Boolean)

Adds an image to the cell.

GridRowBuilder.CellBuilder

Adds text to the cell.

GridRowBuilder.CellBuilder
addOverlayText(text: CharSequence?, isLoading: Boolean)

Adds text to the cell.

GridRowBuilder.CellBuilder

Adds text to the cell.

GridRowBuilder.CellBuilder
addText(text: CharSequence?, isLoading: Boolean)

Adds text to the cell.

GridRowBuilder.CellBuilder

Adds text to the cell.

GridRowBuilder.CellBuilder
addTitleText(text: CharSequence?, isLoading: Boolean)

Adds text to the cell.

GridRowBuilder.CellBuilder

Sets the content description for this cell.

GridRowBuilder.CellBuilder

Sets the action to be invoked if the user taps on this cell in the row.

GridRowBuilder.CellBuilder

Sets the SliceAction for the cell.

Public constructors

CellBuilderDsl

Added in 1.0.0-alpha08
CellBuilderDsl()