# BuildDrawCacheParams

Artifact: [androidx.compose.ui:ui](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/draw/DrawModifier.kt+class:androidx.compose.ui.draw.BuildDrawCacheParams) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/All
- Cmn

  ```
  interface BuildDrawCacheParams
  ```

*** ** * ** ***

The set of parameters which could be used to build the drawing cache.

| See also |
|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/DrawCacheModifier#onBuildCache(androidx.compose.ui.draw.BuildDrawCacheParams)` |   |

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Density` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/BuildDrawCacheParams#density()` The current screen density to provide the ability to convert between | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/LayoutDirection` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/BuildDrawCacheParams#layoutDirection()` The current layout direction. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/draw/BuildDrawCacheParams#size()` The current size of the drawing environment | Cmn |

## Public properties

### density

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val density: Density
```

The current screen density to provide the ability to convert between

### layoutDirection

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val layoutDirection: LayoutDirection
```

The current layout direction.

### size

Cmn Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0)

```
val size: Size
```

The current size of the drawing environment