ModifiersBuilders.Modifiers.Builder

public static final class ModifiersBuilders.Modifiers.Builder
extends Object

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


Builder for ModifiersBuilders.Modifiers

Summary

Public methods

ModifiersBuilders.Modifiers build()

Builds an instance from accumulated values.

ModifiersBuilders.Modifiers.Builder setBackground(ModifiersBuilders.Background background)

Sets adds a background (with optional corner radius) to the modified element.

ModifiersBuilders.Modifiers.Builder setBackground(ModifiersBuilders.Background.Builder backgroundBuilder)

Sets adds a background (with optional corner radius) to the modified element.

ModifiersBuilders.Modifiers.Builder setBorder(ModifiersBuilders.Border.Builder borderBuilder)

Sets draws a border around the modified element.

ModifiersBuilders.Modifiers.Builder setBorder(ModifiersBuilders.Border border)

Sets draws a border around the modified element.

ModifiersBuilders.Modifiers.Builder setClickable(ModifiersBuilders.Clickable clickable)

Sets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

ModifiersBuilders.Modifiers.Builder setClickable(ModifiersBuilders.Clickable.Builder clickableBuilder)

Sets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

ModifiersBuilders.Modifiers.Builder setPadding(ModifiersBuilders.Padding padding)

Sets adds padding to the modified element.

ModifiersBuilders.Modifiers.Builder setPadding(ModifiersBuilders.Padding.Builder paddingBuilder)

Sets adds padding to the modified element.

ModifiersBuilders.Modifiers.Builder setSemantics(ModifiersBuilders.Semantics.Builder semanticsBuilder)

Sets adds metadata for the modified element, for example, screen reader content descriptions.

ModifiersBuilders.Modifiers.Builder setSemantics(ModifiersBuilders.Semantics semantics)

Sets adds metadata for the modified element, for example, screen reader content descriptions.

Inherited methods

Public methods

build

public ModifiersBuilders.Modifiers build ()

Builds an instance from accumulated values.

Returns
ModifiersBuilders.Modifiers

setBackground

public ModifiersBuilders.Modifiers.Builder setBackground (ModifiersBuilders.Background background)

Sets adds a background (with optional corner radius) to the modified element.

Parameters
background ModifiersBuilders.Background

Returns
ModifiersBuilders.Modifiers.Builder

setBackground

public ModifiersBuilders.Modifiers.Builder setBackground (ModifiersBuilders.Background.Builder backgroundBuilder)

Sets adds a background (with optional corner radius) to the modified element.

Parameters
backgroundBuilder ModifiersBuilders.Background.Builder

Returns
ModifiersBuilders.Modifiers.Builder

setBorder

public ModifiersBuilders.Modifiers.Builder setBorder (ModifiersBuilders.Border.Builder borderBuilder)

Sets draws a border around the modified element.

Parameters
borderBuilder ModifiersBuilders.Border.Builder

Returns
ModifiersBuilders.Modifiers.Builder

setBorder

public ModifiersBuilders.Modifiers.Builder setBorder (ModifiersBuilders.Border border)

Sets draws a border around the modified element.

Parameters
border ModifiersBuilders.Border

Returns
ModifiersBuilders.Modifiers.Builder

setClickable

public ModifiersBuilders.Modifiers.Builder setClickable (ModifiersBuilders.Clickable clickable)

Sets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

Parameters
clickable ModifiersBuilders.Clickable

Returns
ModifiersBuilders.Modifiers.Builder

setClickable

public ModifiersBuilders.Modifiers.Builder setClickable (ModifiersBuilders.Clickable.Builder clickableBuilder)

Sets allows its wrapped element to have actions associated with it, which will be executed when the element is tapped.

Parameters
clickableBuilder ModifiersBuilders.Clickable.Builder

Returns
ModifiersBuilders.Modifiers.Builder

setPadding

public ModifiersBuilders.Modifiers.Builder setPadding (ModifiersBuilders.Padding padding)

Sets adds padding to the modified element.

Parameters
padding ModifiersBuilders.Padding

Returns
ModifiersBuilders.Modifiers.Builder

setPadding

public ModifiersBuilders.Modifiers.Builder setPadding (ModifiersBuilders.Padding.Builder paddingBuilder)

Sets adds padding to the modified element.

Parameters
paddingBuilder ModifiersBuilders.Padding.Builder

Returns
ModifiersBuilders.Modifiers.Builder

setSemantics

public ModifiersBuilders.Modifiers.Builder setSemantics (ModifiersBuilders.Semantics.Builder semanticsBuilder)

Sets adds metadata for the modified element, for example, screen reader content descriptions.

Parameters
semanticsBuilder ModifiersBuilders.Semantics.Builder

Returns
ModifiersBuilders.Modifiers.Builder

setSemantics

public ModifiersBuilders.Modifiers.Builder setSemantics (ModifiersBuilders.Semantics semantics)

Sets adds metadata for the modified element, for example, screen reader content descriptions.

Parameters
semantics ModifiersBuilders.Semantics

Returns
ModifiersBuilders.Modifiers.Builder