# DeviceParametersBuilders

# DeviceParametersBuilders

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/DeviceParametersBuilders.java+class:androidx.wear.protolayout.DeviceParametersBuilders)  
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/DeviceParametersBuilders "View this page in Java")

<br />

```
class DeviceParametersBuilders
```

<br />

*** ** * ** ***

Builders for request messages used to fetch layouts and resources.

## Summary

|                                                                                                                                                                                                                                                                                                                      ### Nested types                                                                                                                                                                                                                                                                                                                       |
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 200)` `@`[ProtoLayoutExperimental](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/ProtoLayoutExperimental) `class `[DeviceParametersBuilders.Capabilities](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities) [Capabilities](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities)describing the features that the renderer supports. |
| `class `[DeviceParametersBuilders.Capabilities.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities.Builder) Builder for[Capabilities](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities)                                                                                                                                                                                                                                                                                                                                   |
| `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` `class `[DeviceParametersBuilders.DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters) Parameters describing the device requesting a layout update.                                                                                                                                                                                                                                                          |
| `class `[DeviceParametersBuilders.DeviceParameters.Builder](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters.Builder) Builder for[DeviceParameters](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.DeviceParameters)                                                                                                                                                                                                                                                                                                                   |

|                                    ### Constants                                    |
|-------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [DEVICE_PLATFORM_UNDEFINED](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders#DEVICE_PLATFORM_UNDEFINED())` = 0` Device platform is undefined.            |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [DEVICE_PLATFORM_WEAR_OS](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders#DEVICE_PLATFORM_WEAR_OS())` = 1` Device is a Wear OS device.                  |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [SCREEN_SHAPE_RECT](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders#SCREEN_SHAPE_RECT())` = 2` Rectangular screens.                                     |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [SCREEN_SHAPE_ROUND](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders#SCREEN_SHAPE_ROUND())` = 1` A round screen (typically found on most Wear devices). |
| `const `[Int](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-int/index.html) | `@`[RequiresSchemaVersion](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/expression/RequiresSchemaVersion)`(major = 1, minor = 0)` [SCREEN_SHAPE_UNDEFINED](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders#SCREEN_SHAPE_UNDEFINED())` = 0` Screen shape is undefined.                     |

## Constants

### DEVICE_PLATFORM_UNDEFINED

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val DEVICE_PLATFORM_UNDEFINED = 0: Int
```

Device platform is undefined.  

### DEVICE_PLATFORM_WEAR_OS

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val DEVICE_PLATFORM_WEAR_OS = 1: Int
```

Device is a Wear OS device.  

### SCREEN_SHAPE_RECT

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val SCREEN_SHAPE_RECT = 2: Int
```

Rectangular screens.  

### SCREEN_SHAPE_ROUND

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val SCREEN_SHAPE_ROUND = 1: Int
```

A round screen (typically found on most Wear devices).  

### SCREEN_SHAPE_UNDEFINED

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

```
@RequiresSchemaVersion(major = 1, minor = 0)
const val SCREEN_SHAPE_UNDEFINED = 0: Int
```

Screen shape is undefined.