ListBuilder.RangeBuilder

public static class ListBuilder.RangeBuilder
extends Object

java.lang.Object
   ↳ androidx.slice.builders.ListBuilder.RangeBuilder


Builder to construct a range row which can be added to a ListBuilder.

A range row supports displaying a horizontal progress indicator.

Summary

Public constructors

RangeBuilder()

Builder to construct a range row which can be added to a ListBuilder.

Public methods

ListBuilder.RangeBuilder setContentDescription(CharSequence description)

Sets the content description.

ListBuilder.RangeBuilder setLayoutDirection(int layoutDirection)

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

ListBuilder.RangeBuilder setMax(int max)

Set the upper limit of the range.

ListBuilder.RangeBuilder setMode(int mode)

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

ListBuilder.RangeBuilder setPrimaryAction(SliceAction action)

Set the primary action for this row.

ListBuilder.RangeBuilder setSubtitle(CharSequence title)

Set the subtitle.

ListBuilder.RangeBuilder setTitle(CharSequence title)

Set the title.

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

Sets the title item to be the provided icon.

ListBuilder.RangeBuilder setTitleItem(IconCompat icon, int imageMode)

Sets the title item to be the provided icon.

ListBuilder.RangeBuilder setValue(int value)

Set the current value of the range.

Inherited methods