# LayoutElementBuilders.ArcAdapter

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

*** ** * ** ***


```
public final class LayoutElementBuilders.ArcAdapter implements LayoutElementBuilders.ArcLayoutElement
```

<br />

*** ** * ** ***

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

A container that allows a standard `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` to be added to an `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Arc`.

## Summary

| ### Nested types |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAdapter.Builder implements https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcLayoutElement.Builder` **This class is deprecated.** Deprecated in Java |

| ### Public methods |
|---|---|
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.LayoutElement` | `[getContent](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAdapter#getContent())()` **This method is deprecated.** Deprecated in Java |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/Nullable.html https://developer.android.com/reference/androidx/wear/tiles/TypeBuilders.BoolProp` | `[getRotateContents](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAdapter#getRotateContents())()` **This method is deprecated.** Deprecated in Java |

## Public methods

### getContent

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

```
public @Nullable LayoutElementBuilders.LayoutElement [getContent](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAdapter#getContent())()
```

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

Gets the element to adapt to an `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Arc`. Intended for testing purposes only.

### getRotateContents

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

```
public @Nullable TypeBuilders.BoolProp [getRotateContents](https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.ArcAdapter#getRotateContents())()
```

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

Gets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an `https://developer.android.com/reference/androidx/wear/tiles/LayoutElementBuilders.Image` has been added to the arc, and ends up at the 3 o clock position. If rotate_contents = true, the image will be placed at the 3 o clock position, and will be rotated clockwise through 90 degrees. If rotate_contents = false, the image will be placed at the 3 o clock position, but itself will not be rotated. If not defined, defaults to false. Intended for testing purposes only.