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

*** ** * ** ***


```
class VisualStateRequest.Builder
```

<br />

*** ** * ** ***

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

## Summary

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

| ### Public functions |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/window/layout/VisualStateRequest` | `https://developer.android.com/reference/kotlin/androidx/window/layout/VisualStateRequest.Builder#build()()` Builds a `https://developer.android.com/reference/kotlin/androidx/window/layout/VisualStateRequest` with the provided properties. |
| `https://developer.android.com/reference/kotlin/androidx/window/layout/VisualStateRequest.Builder` | `https://developer.android.com/reference/kotlin/androidx/window/layout/VisualStateRequest.Builder#setSustainedVisualsEnabled(kotlin.Boolean)(isSustainedVisualsEnabled: https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-boolean/index.html)` 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)

```
Builder()
```

## Public functions

### build

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

```
fun build(): VisualStateRequest
```

Builds a `https://developer.android.com/reference/kotlin/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)

```
fun setSustainedVisualsEnabled(isSustainedVisualsEnabled: Boolean): VisualStateRequest.Builder
```

Sets whether to request screen visuals be sustained.