# EdgeContentLayout.Builder

Artifact: [androidx.wear.tiles:tiles-material](https://developer.android.com/jetpack/androidx/releases/wear-tiles) [View Source](https://cs.android.com/search?q=file:androidx/wear/tiles/material/layouts/EdgeContentLayout.java+class:androidx.wear.tiles.material.layouts.EdgeContentLayout.Builder) Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

*** ** * ** ***


```
class EdgeContentLayout.Builder : LayoutElementBuilders.LayoutElement.Builder
```

<br />

*** ** * ** ***

> [!CAUTION]
> **This class is deprecated.**   
> Deprecated in Java

Builder class for `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout`.

## Summary

| ### Public constructors |
|---|
| `[Builder](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#Builder(androidx.wear.tiles.DeviceParametersBuilders.DeviceParameters))(deviceParameters: https://developer.android.com/reference/kotlin/androidx/wear/tiles/DeviceParametersBuilders.DeviceParameters)` **This function is deprecated.** Deprecated in Java |

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout` | `[build](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#build())()` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder` | `[setContent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(content: https://developer.android.com/reference/kotlin/androidx/wear/tiles/LayoutElementBuilders.LayoutElement)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder` | `[setEdgeContent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setEdgeContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(edgeContent: https://developer.android.com/reference/kotlin/androidx/wear/tiles/LayoutElementBuilders.LayoutElement)` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder` | `[setPrimaryLabelTextContent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setPrimaryLabelTextContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))( primaryLabelText: https://developer.android.com/reference/kotlin/androidx/wear/tiles/LayoutElementBuilders.LayoutElement )` **This function is deprecated.** Deprecated in Java |
| `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder` | `[setSecondaryLabelTextContent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setSecondaryLabelTextContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))( secondaryLabelText: https://developer.android.com/reference/kotlin/androidx/wear/tiles/LayoutElementBuilders.LayoutElement )` **This function is deprecated.** Deprecated in Java |

## Public constructors

### Builder

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
[Builder](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#Builder(androidx.wear.tiles.DeviceParametersBuilders.DeviceParameters))(deviceParameters: DeviceParametersBuilders.DeviceParameters)
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Creates a builder for the `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout`t. Custom content inside of it can later be set with (`https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement)`.

## Public functions

### build

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
fun [build](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#build())(): EdgeContentLayout
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Constructs and returns `https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout` with the provided content and look.

### setContent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
fun [setContent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(content: LayoutElementBuilders.LayoutElement): EdgeContentLayout.Builder
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the additional content to this layout, inside of the screen.

### setEdgeContent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
fun [setEdgeContent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setEdgeContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(edgeContent: LayoutElementBuilders.LayoutElement): EdgeContentLayout.Builder
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the content to be around the edges. This can be CircularProgressIndicator.

### setPrimaryLabelTextContent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
fun [setPrimaryLabelTextContent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setPrimaryLabelTextContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(
    primaryLabelText: LayoutElementBuilders.LayoutElement
): EdgeContentLayout.Builder
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the content in the primary label slot which will be above the main content.

### setSecondaryLabelTextContent

Added in [1.1.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.1.0) Deprecated in [1.2.0](https://developer.android.com/jetpack/androidx/releases/wear-tiles#1.2.0)

```
fun [setSecondaryLabelTextContent](https://developer.android.com/reference/kotlin/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setSecondaryLabelTextContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(
    secondaryLabelText: LayoutElementBuilders.LayoutElement
): EdgeContentLayout.Builder
```

> [!CAUTION]
> **This function is deprecated.**   
> Deprecated in Java

Sets the content in the secondary label slot which will be below the main content. It is highly recommended to have primary label set when having secondary label.