# 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)

*** ** * ** ***


```
public final class EdgeContentLayout.Builder implements LayoutElementBuilders.LayoutElement.Builder
```

<br />

*** ** * ** ***

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

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

## Summary

| ### Public constructors |
|---|
| `[Builder](https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#Builder(androidx.wear.tiles.DeviceParametersBuilders.DeviceParameters))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/DeviceParametersBuilders.DeviceParameters deviceParameters )` **This method is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout` | `[build](https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#build())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder` | `[setContent](https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement content)` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder` | `[setEdgeContent](https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setEdgeContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))(@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement edgeContent)` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder` | `[setPrimaryLabelTextContent](https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setPrimaryLabelTextContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement primaryLabelText )` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder` | `[setSecondaryLabelTextContent](https://developer.android.com/reference/androidx/wear/tiles/material/layouts/EdgeContentLayout.Builder#setSecondaryLabelTextContent(androidx.wear.tiles.LayoutElementBuilders.LayoutElement))( @https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement secondaryLabelText )` **This method 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)

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

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

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

## Public methods

### 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)

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

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

Constructs and returns `https://developer.android.com/reference/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)

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

> [!CAUTION]
> **This method 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)

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

> [!CAUTION]
> **This method 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)

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

> [!CAUTION]
> **This method 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)

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

> [!CAUTION]
> **This method 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.