RangeBuilderDsl
class RangeBuilderDsl : 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 |
Helper class annotated with @SliceMarker, which is annotated with @DslMarker.
|
Inherited functions |
From class RangeBuilder
ListBuilder.RangeBuilder |
setContentDescription(@NonNull description: CharSequence)
Sets the content description.
|
ListBuilder.RangeBuilder |
setLayoutDirection(layoutDirection: Int)
Sets the desired layout direction for the content in this row.
|
ListBuilder.RangeBuilder |
setMax(max: Int)
Set the upper limit of the range. The default is 100.
|
ListBuilder.RangeBuilder |
setMode(mode: Int)
Sets the progress bar mode, it could be the determinate or indeterminate mode.
|
ListBuilder.RangeBuilder |
setPrimaryAction(@NonNull action: SliceAction)
Set the primary action for this row.
The action specified here will be sent when the whole row is clicked. If this is the first row in a ListBuilder this action will also be used to define the androidx.slice.widget.SliceView#MODE_SHORTCUT representation of the slice.
|
ListBuilder.RangeBuilder |
setSubtitle(@NonNull title: CharSequence)
Set the subtitle.
|
ListBuilder.RangeBuilder |
setTitle(@NonNull title: CharSequence)
Set the title.
|
ListBuilder.RangeBuilder |
setTitleItem(@NonNull icon: IconCompat, imageMode: Int)
Sets the title item to be the provided icon. There can only be one title item, this will replace any other title items that may have been set using this method or its overload setTitleItem(IconCompat, int, boolean) .
|
ListBuilder.RangeBuilder |
setTitleItem(@NonNull icon: IconCompat, imageMode: Int, isLoading: Boolean)
Sets the title item to be the provided icon. There can only be one title item, this will replace any other title items that may have been set using this method or its overload setTitleItem(IconCompat, int) .
When set to true, the parameter isLoading indicates that the app is doing work to load this content in the background, in this case the template displays a placeholder until updated.
|
ListBuilder.RangeBuilder |
setValue(value: Int)
Set the current value of the range.
|
|
Public constructors
<init>
RangeBuilderDsl()
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.