# LayoutElementBuilders.ContentScaleModeProp.Builder

# LayoutElementBuilders.ContentScaleModeProp.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.ContentScaleModeProp.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.ContentScaleModeProp.Builder "View this page in Java")

<br />

```
class LayoutElementBuilders.ContentScaleModeProp.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

|                                                                               ### Public functions                                                                                |
|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [LayoutElementBuilders.ContentScaleModeProp](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ContentScaleModeProp)                 | [build](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ContentScaleModeProp.Builder#build())`()` Builds an instance from accumulated values.                                                                                                                                                                                                                                |
| [LayoutElementBuilders.ContentScaleModeProp.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ContentScaleModeProp.Builder) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [setValue](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.ContentScaleModeProp.Builder#setValue(int))`(value: `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html)`)` Sets the value. |

## 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.ContentScaleModeProp.Builder).  

## Public functions

### build

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

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

Builds an instance from accumulated values.  

### setValue

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
fun setValue(value: Int): LayoutElementBuilders.ContentScaleModeProp.Builder
```

Sets the value.