Google is committed to advancing racial equity for Black communities. See how.

Builder

class Builder
kotlin.Any
   ↳ androidx.wear.complications.data.LongTextComplicationData.Builder

Builder for LongTextComplicationData.

You must at a minimum set the text.

Summary

Public constructors

Builder for LongTextComplicationData.

Public methods
LongTextComplicationData

Builds the LongTextComplicationData.

LongTextComplicationData.Builder

Sets optional image associated with the complication data.

LongTextComplicationData.Builder
setSmallImage(smallImage: SmallImage?)

Sets optional image associated with the complication data.

LongTextComplicationData.Builder

Sets optional pending intent to be invoked when the complication is tapped.

LongTextComplicationData.Builder

Sets optional title associated with the complication data.

LongTextComplicationData.Builder
setValidTimeRange(validTimeRange: TimeRange?)

Sets optional time range during which the complication has to be shown.

Public constructors

<init>

Builder(text: ComplicationText)

Builder for LongTextComplicationData.

You must at a minimum set the text.

Public methods

build

fun build(): LongTextComplicationData

Builds the LongTextComplicationData.

setMonochromaticImage

fun setMonochromaticImage(icon: MonochromaticImage?): LongTextComplicationData.Builder

Sets optional image associated with the complication data.

setSmallImage

fun setSmallImage(smallImage: SmallImage?): LongTextComplicationData.Builder

Sets optional image associated with the complication data.

setTapAction

fun setTapAction(tapAction: PendingIntent?): LongTextComplicationData.Builder

Sets optional pending intent to be invoked when the complication is tapped.

setTitle

fun setTitle(title: ComplicationText?): LongTextComplicationData.Builder

Sets optional title associated with the complication data.

setValidTimeRange

fun setValidTimeRange(validTimeRange: TimeRange?): LongTextComplicationData.Builder

Sets optional time range during which the complication has to be shown.