HeaderBuilderDsl


public final class HeaderBuilderDsl extends ListBuilder.HeaderBuilder


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.HeaderBuilder
@NonNull ListBuilder.HeaderBuilder

Sets the content description for the header.

@NonNull ListBuilder.HeaderBuilder
setLayoutDirection(int layoutDirection)

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

@NonNull ListBuilder.HeaderBuilder

Sets the action to send when the header is clicked.

@NonNull ListBuilder.HeaderBuilder

Sets the subtitle for the header builder.

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

Sets the subtitle for the header builder.

@NonNull ListBuilder.HeaderBuilder

Sets the summary for the header builder.

@NonNull ListBuilder.HeaderBuilder
setSummary(@NonNull CharSequence summary, boolean isLoading)

Sets the summary for the header builder.

@NonNull ListBuilder.HeaderBuilder

Sets the title for the header builder.

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

Sets the title for the header builder.

Public constructors

HeaderBuilderDsl

Added in 1.0.0-alpha08
public HeaderBuilderDsl()