# 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)

*** ** * ** ***


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

<br />

*** ** * ** ***

`https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities` describing the features that the renderer supports. These features are not necessarily tied to a specific schema version. `https://developer.android.com/reference/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 |
|---|
| `public final class https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities.Builder` Builder for `https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities` |

| ### Public methods |
|---|---|
| `long` | `https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities#getMinimumFreshnessLimitMillis()()` Gets current minimum freshness limit in milliseconds for a layout. |
| `@https://jspecify.dev/docs/api/org/jspecify/annotations/NonNull.html https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/wear/protolayout/DeviceParametersBuilders.Capabilities#toString()()` |

## Public methods

### getMinimumFreshnessLimitMillis

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

```
public long getMinimumFreshnessLimitMillis()
```

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

```
public @NonNull String toString()
```