# VisualStateRequest.Builder

Artifact: [androidx.window:window](https://developer.android.com/jetpack/androidx/releases/window) [View Source](https://cs.android.com/search?q=file:androidx/window/layout/VisualStateRequest.kt+class:androidx.window.layout.VisualStateRequest.Builder) Added in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05)

*** ** * ** ***


```
public final class VisualStateRequest.Builder
```

<br />

*** ** * ** ***

A builder for `https://developer.android.com/reference/androidx/window/layout/VisualStateRequest`.

## Summary

| ### Public constructors |
|---|
| `https://developer.android.com/reference/androidx/window/layout/VisualStateRequest.Builder#Builder()()` |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/layout/VisualStateRequest` | `https://developer.android.com/reference/androidx/window/layout/VisualStateRequest.Builder#build()()` Builds a `https://developer.android.com/reference/androidx/window/layout/VisualStateRequest` with the provided properties. |
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/window/layout/VisualStateRequest.Builder` | `https://developer.android.com/reference/androidx/window/layout/VisualStateRequest.Builder#setSustainedVisualsEnabled(kotlin.Boolean)(boolean isSustainedVisualsEnabled)` Sets whether to request screen visuals be sustained. |

## Public constructors

### Builder

Added in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05)

```
public Builder()
```

## Public methods

### build

Added in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05)

```
public final @NonNull VisualStateRequest build()
```

Builds a `https://developer.android.com/reference/androidx/window/layout/VisualStateRequest` with the provided properties.

### setSustainedVisualsEnabled

Added in [1.6.0-alpha05](https://developer.android.com/jetpack/androidx/releases/window#1.6.0-alpha05)

```
public final @NonNull VisualStateRequest.Builder setSustainedVisualsEnabled(boolean isSustainedVisualsEnabled)
```

Sets whether to request screen visuals be sustained.