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

From androidx.slice.builders.ListBuilder.RowBuilder
@NonNull ListBuilder.RowBuilder

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

@NonNull ListBuilder.RowBuilder
addEndItem(long timeStamp)

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

@NonNull ListBuilder.RowBuilder
addEndItem(@NonNull SliceAction action, boolean isLoading)

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

@NonNull ListBuilder.RowBuilder
addEndItem(@NonNull IconCompat icon, int imageMode)

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

@NonNull ListBuilder.RowBuilder
addEndItem(@Nullable IconCompat icon, int imageMode, boolean isLoading)

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

@NonNull ListBuilder.RowBuilder

Sets the content description for the row.

@NonNull ListBuilder.RowBuilder
setEndOfSection(boolean isEndOfSection)

Indicate that this row is an end for a section.

@NonNull ListBuilder.RowBuilder
setLayoutDirection(int layoutDirection)

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

@NonNull ListBuilder.RowBuilder

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

@NonNull ListBuilder.RowBuilder

Sets the subtitle for the row builder.

@NonNull ListBuilder.RowBuilder
setSubtitle(@Nullable CharSequence subtitle, boolean isLoading)

Sets the subtitle for the row builder.

@NonNull ListBuilder.RowBuilder

Sets the title for the row builder.

@NonNull ListBuilder.RowBuilder
setTitle(@Nullable CharSequence title, boolean isLoading)

Sets the title for the row builder.

@NonNull ListBuilder.RowBuilder

Sets the title item to be a tappable icon.

@NonNull ListBuilder.RowBuilder
setTitleItem(long timeStamp)

Sets the title item to be the provided timestamp.

@NonNull ListBuilder.RowBuilder
setTitleItem(@NonNull SliceAction action, boolean isLoading)

Sets the title item to be a tappable icon.

@NonNull ListBuilder.RowBuilder
setTitleItem(@NonNull IconCompat icon, int imageMode)

Sets the title item to be the provided icon.

@NonNull ListBuilder.RowBuilder
setTitleItem(@Nullable IconCompat icon, int imageMode, boolean isLoading)

Sets the title item to be the provided icon.

Public constructors

RowBuilderDsl

Added in 1.0.0-alpha08
public RowBuilderDsl()