CellBuilderDsl


public final class CellBuilderDsl extends 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 methods

From androidx.slice.builders.GridRowBuilder.CellBuilder
@NonNull GridRowBuilder.CellBuilder
addImage(@NonNull IconCompat image, int imageMode)

Adds an image to the cell.

@NonNull GridRowBuilder.CellBuilder
addImage(@Nullable IconCompat image, int imageMode, boolean isLoading)

Adds an image to the cell.

@NonNull GridRowBuilder.CellBuilder

Adds text to the cell.

@NonNull GridRowBuilder.CellBuilder
addOverlayText(@Nullable CharSequence text, boolean isLoading)

Adds text to the cell.

@NonNull GridRowBuilder.CellBuilder

Adds text to the cell.

@NonNull GridRowBuilder.CellBuilder
addText(@Nullable CharSequence text, boolean isLoading)

Adds text to the cell.

@NonNull GridRowBuilder.CellBuilder

Adds text to the cell.

@NonNull GridRowBuilder.CellBuilder
addTitleText(@Nullable CharSequence text, boolean isLoading)

Adds text to the cell.

@NonNull GridRowBuilder.CellBuilder

Sets the content description for this cell.

@NonNull GridRowBuilder.CellBuilder

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

@NonNull GridRowBuilder.CellBuilder

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

@NonNull GridRowBuilder.CellBuilder

Sets the SliceAction for the cell.

Public constructors

CellBuilderDsl

Added in 1.0.0-alpha08
public CellBuilderDsl()