Builder
class Builder
kotlin.Any | |
↳ | androidx.wear.complications.data.PhotoImageComplicationData.Builder |
Builder for PhotoImageComplicationData.
You must at a minimum set the photoImage field.
Summary
Public constructors | |
---|---|
Builder for PhotoImageComplicationData. |
Public methods | |
---|---|
PhotoImageComplicationData |
build() Builds the PhotoImageComplicationData. |
PhotoImageComplicationData.Builder |
setContentDescription(contentDescription: ComplicationText?) Sets optional content description associated with the complication data. |
PhotoImageComplicationData.Builder |
setTapAction(tapAction: PendingIntent?) Sets optional pending intent to be invoked when the complication is tapped. |
PhotoImageComplicationData.Builder |
setValidTimeRange(validTimeRange: TimeRange?) Sets optional time range during which the complication has to be shown. |
Public constructors
<init>
Builder(photoImage: Icon)
Builder for PhotoImageComplicationData.
You must at a minimum set the photoImage field.
Public methods
setContentDescription
fun setContentDescription(contentDescription: ComplicationText?): PhotoImageComplicationData.Builder
Sets optional content description associated with the complication data.
setTapAction
fun setTapAction(tapAction: PendingIntent?): PhotoImageComplicationData.Builder
Sets optional pending intent to be invoked when the complication is tapped.
setValidTimeRange
fun setValidTimeRange(validTimeRange: TimeRange?): PhotoImageComplicationData.Builder
Sets optional time range during which the complication has to be shown.