# DeviceParametersBuilders.Capabilities

# DeviceParametersBuilders.Capabilities

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.Capabilities)  
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.Capabilities "View this page in Java")

<br />

```
@RequiresSchemaVersion(major = 1, minor = 200)
@ProtoLayoutExperimental
class DeviceParametersBuilders.Capabilities
```

<br />

*** ** * ** ***

[Capabilities](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities)describing the features that the renderer supports. These features are not necessarily tied to a specific schema version.[androidx.wear.protolayout.LayoutElementBuilders.Layout](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/LayoutElementBuilders.Layout)providers can use these information to conditionally generate different layouts based on the presence/value of a feature.

## Summary

|                                                                                                                                                     ### Nested types                                                                                                                                                      |
|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `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) |

|                               ### Public functions                                |
|-----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Long](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html)     | [getMinimumFreshnessLimitMillis](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities#getMinimumFreshnessLimitMillis())`()` Gets current minimum freshness limit in milliseconds for a layout. |
| [String](https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities#toString())`()`                                                                                                                |

## Public functions

### getMinimumFreshnessLimitMillis

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

```
fun getMinimumFreshnessLimitMillis(): Long
```

Gets current minimum freshness limit in milliseconds for a layout. This can change based on various factors. Any freshness request lower than the current limit will be replaced by that limit. A value of 0 here signifies that the minimum freshness limit in unknown.  

### toString

```
fun toString(): String
```