RangeBuilderDsl


public final class RangeBuilderDsl extends ListBuilder.RangeBuilder


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

Sets the content description.

@NonNull ListBuilder.RangeBuilder
setLayoutDirection(int layoutDirection)

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

@NonNull ListBuilder.RangeBuilder
setMax(int max)

Set the upper limit of the range.

@NonNull ListBuilder.RangeBuilder
setMode(int mode)

Sets the progress bar mode, it could be the determinate or indeterminate mode.

@NonNull ListBuilder.RangeBuilder

Set the primary action for this row.

@NonNull ListBuilder.RangeBuilder

Set the subtitle.

@NonNull ListBuilder.RangeBuilder

Set the title.

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

Sets the title item to be the provided icon.

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

Sets the title item to be the provided icon.

@NonNull ListBuilder.RangeBuilder
setValue(int value)

Set the current value of the range.

Public constructors

RangeBuilderDsl

Added in 1.0.0-alpha08
public RangeBuilderDsl()