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

Builder

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

Builder for BackgroundImageComplicationData.

You must at a minimum set the icon field.

Summary

Public constructors

Builder for BackgroundImageComplicationData.

Public methods
BackgroundImageComplicationData

Builds the BackgroundImageComplicationData.

BackgroundImageComplicationData.Builder

Sets optional content description associated with the complication data.

BackgroundImageComplicationData.Builder

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

BackgroundImageComplicationData.Builder
setValidTimeRange(validTimeRange: TimeRange?)

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

Public constructors

<init>

Builder(icon: BackgroundImage)

Builder for BackgroundImageComplicationData.

You must at a minimum set the icon field.

Public methods

setContentDescription

fun setContentDescription(contentDescription: ComplicationText?): BackgroundImageComplicationData.Builder

Sets optional content description associated with the complication data.

setTapAction

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

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

setValidTimeRange

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

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