Builder
class Builder
kotlin.Any | |
↳ | androidx.wear.complications.data.RangedValueComplicationData.Builder |
Builder for RangedValueComplicationData.
You must at a minimum set the value, min, and max fields.
Summary
Public constructors | |
---|---|
Builder for RangedValueComplicationData. |
Public methods | |
---|---|
RangedValueComplicationData |
build() Builds the RangedValueComplicationData. |
RangedValueComplicationData.Builder |
setContentDescription(contentDescription: ComplicationText?) Sets optional content description associated with the complication data. |
RangedValueComplicationData.Builder |
setMonochromaticImage(monochromaticImage: MonochromaticImage?) Sets optional icon associated with the complication data. |
RangedValueComplicationData.Builder |
setTapAction(tapAction: PendingIntent?) Sets optional pending intent to be invoked when the complication is tapped. |
RangedValueComplicationData.Builder |
setText(text: ComplicationText?) Sets optional title associated with the complication data. |
RangedValueComplicationData.Builder |
setTitle(title: ComplicationText?) Sets optional title associated with the complication data. |
RangedValueComplicationData.Builder |
setValidTimeRange(validTimeRange: TimeRange?) Sets optional time range during which the complication has to be shown. |
Public constructors
Public methods
setContentDescription
fun setContentDescription(contentDescription: ComplicationText?): RangedValueComplicationData.Builder
Sets optional content description associated with the complication data.
setMonochromaticImage
fun setMonochromaticImage(monochromaticImage: MonochromaticImage?): RangedValueComplicationData.Builder
Sets optional icon associated with the complication data.
setTapAction
fun setTapAction(tapAction: PendingIntent?): RangedValueComplicationData.Builder
Sets optional pending intent to be invoked when the complication is tapped.
setText
fun setText(text: ComplicationText?): RangedValueComplicationData.Builder
Sets optional title associated with the complication data.
setTitle
fun setTitle(title: ComplicationText?): RangedValueComplicationData.Builder
Sets optional title associated with the complication data.
setValidTimeRange
fun setValidTimeRange(validTimeRange: TimeRange?): RangedValueComplicationData.Builder
Sets optional time range during which the complication has to be shown.