ModifiersBuilders.Background.Builder

public static final class ModifiersBuilders.Background.Builder
extends Object

java.lang.Object
   ↳ androidx.wear.tiles.builders.ModifiersBuilders.Background.Builder


Builder for ModifiersBuilders.Background

Summary

Public methods

ModifiersBuilders.Background build()

Builds an instance from accumulated values.

ModifiersBuilders.Background.Builder setColor(ColorBuilders.ColorProp color)

Sets the background color for this element.

ModifiersBuilders.Background.Builder setColor(ColorBuilders.ColorProp.Builder colorBuilder)

Sets the background color for this element.

ModifiersBuilders.Background.Builder setCorner(ModifiersBuilders.Corner.Builder cornerBuilder)

Sets the corner properties of this element.

ModifiersBuilders.Background.Builder setCorner(ModifiersBuilders.Corner corner)

Sets the corner properties of this element.

Inherited methods

Public methods

build

public ModifiersBuilders.Background build ()

Builds an instance from accumulated values.

Returns
ModifiersBuilders.Background

setColor

public ModifiersBuilders.Background.Builder setColor (ColorBuilders.ColorProp color)

Sets the background color for this element. If not defined, defaults to being transparent.

Parameters
color ColorBuilders.ColorProp

Returns
ModifiersBuilders.Background.Builder

setColor

public ModifiersBuilders.Background.Builder setColor (ColorBuilders.ColorProp.Builder colorBuilder)

Sets the background color for this element. If not defined, defaults to being transparent.

Parameters
colorBuilder ColorBuilders.ColorProp.Builder

Returns
ModifiersBuilders.Background.Builder

setCorner

public ModifiersBuilders.Background.Builder setCorner (ModifiersBuilders.Corner.Builder cornerBuilder)

Sets the corner properties of this element. This only affects the drawing of this element if it has a background color or border. If not defined, defaults to having a square corner.

Parameters
cornerBuilder ModifiersBuilders.Corner.Builder

Returns
ModifiersBuilders.Background.Builder

setCorner

public ModifiersBuilders.Background.Builder setCorner (ModifiersBuilders.Corner corner)

Sets the corner properties of this element. This only affects the drawing of this element if it has a background color or border. If not defined, defaults to having a square corner.

Parameters
corner ModifiersBuilders.Corner

Returns
ModifiersBuilders.Background.Builder