# LayoutElementBuilders.ArcAdapter.Builder

# LayoutElementBuilders.ArcAdapter.Builder

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

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder "View this page in Java")

<br />

```
class LayoutElementBuilders.ArcAdapter.Builder
```

<br />

*** ** * ** ***

Builder for[ArcAdapter](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter).

## Summary

|                                                                                                                                    ### Public constructors                                                                                                                                     |
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder#Builder())`()` Creates an instance of[Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder). |

|                                                                     ### Public functions                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LayoutElementBuilders.ArcAdapter](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter)                 | [build](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder#build())`()` Builds an instance from accumulated values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [LayoutElementBuilders.ArcAdapter.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setContent](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder#setContent(androidx.wear.protolayout.LayoutElementBuilders.LayoutElement))`(content: `[LayoutElementBuilders.LayoutElement](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.LayoutElement)`)` Sets the element to adapt to an[Arc](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc). |
| [LayoutElementBuilders.ArcAdapter.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder) | [setRotateContents](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder#setRotateContents(boolean))`(rotateContents: `[Boolean](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)`)` Sets whether this adapter's contents should be rotated, according to its position in the arc or not.                                                                                                                                                                                                                                                                                                     |
| [LayoutElementBuilders.ArcAdapter.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setRotateContents](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder#setRotateContents(androidx.wear.protolayout.TypeBuilders.BoolProp))`(rotateContents: `[TypeBuilders.BoolProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/TypeBuilders.BoolProp)`)` Sets whether this adapter's contents should be rotated, according to its position in the arc or not.                                                           |

## Public constructors

### Builder

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

```
Builder()
```

Creates an instance of[Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ArcAdapter.Builder).  

## Public functions

### build

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

```
fun build(): LayoutElementBuilders.ArcAdapter
```

Builds an instance from accumulated values.  

### setContent

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setContent(content: LayoutElementBuilders.LayoutElement): LayoutElementBuilders.ArcAdapter.Builder
```

Sets the element to adapt to an[Arc](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Arc).  

|                                                        Throws                                                         |
|-----------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------|
| [java.lang.IllegalArgumentException](https://developer.android.com/reference/java/lang/IllegalArgumentException.html) | if the provided content has a transformation modifier. |

### setRotateContents

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

```
fun setRotateContents(rotateContents: Boolean): LayoutElementBuilders.ArcAdapter.Builder
```

Sets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an[Image](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/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.  

### setRotateContents

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setRotateContents(rotateContents: TypeBuilders.BoolProp): LayoutElementBuilders.ArcAdapter.Builder
```

Sets whether this adapter's contents should be rotated, according to its position in the arc or not. As an example, assume that an[Image](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/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.

Note that this field only supports static values.