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

Adds an image to the cell.

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

Adds an image to the cell.

open GridRowBuilder.CellBuilder

Adds text to the cell.

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

Adds text to the cell.

open GridRowBuilder.CellBuilder

Adds text to the cell.

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

Adds text to the cell.

open GridRowBuilder.CellBuilder

Adds text to the cell.

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

Adds text to the cell.

open GridRowBuilder.CellBuilder

Sets the content description for this cell.

open GridRowBuilder.CellBuilder

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

open GridRowBuilder.CellBuilder

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

open GridRowBuilder.CellBuilder

Sets the SliceAction for the cell.

Public constructors

CellBuilderDsl

Added in 1.0.0-alpha08
CellBuilderDsl()