# Dp.Companion

Artifact: [androidx.compose.ui:ui-unit](https://developer.android.com/jetpack/androidx/releases/compose-ui) [View Source](https://cs.android.com/search?q=file:androidx/compose/ui/unit/Dp.kt+class:androidx.compose.ui.unit.Dp.Companion) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  object Dp.Companion
  ```

*** ** * ** ***

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp#Hairline()` A dimension used to represent a hairline drawing element. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp#Infinity()` Infinite dp dimension. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp#Unspecified()` Constant that means unspecified Dp. | Cmn |

| ### Extension properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/TwoWayConverter<https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp, https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector1D>` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp.Companion#(androidx.compose.ui.unit.Dp.Companion).VectorConverter()` A type converter that converts a `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to a `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector1D`, and vice versa. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp.Companion.https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp.Companion#(androidx.compose.ui.unit.Dp.Companion).VisibilityThreshold()` Visibility threshold for `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. | Cmn |

## Public properties

### Hairline

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

```
val Hairline: Dp
```

A dimension used to represent a hairline drawing element. Hairline elements take up no space, but will draw a single pixel, independent of the device's resolution and density.

### Infinity

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

```
val Infinity: Dp
```

Infinite dp dimension.

### Unspecified

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

```
val Unspecified: Dp
```

Constant that means unspecified Dp. Instead of comparing a `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` value to this constant, consider using `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/package-summary#(androidx.compose.ui.geometry.Offset).isSpecified()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/package-summary#(androidx.compose.ui.unit.Dp).isUnspecified()` instead.

## Extension properties

### Dp.Companion.VectorConverter

Cmn Artifact: [androidx.compose.animation:animation-core](https://developer.android.com/jetpack/androidx/releases/compose-animation) [View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/VectorConverters.kt+symbol:VectorConverter) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)

```
val Dp.Companion.VectorConverter: TwoWayConverter<Dp, AnimationVector1D>
```

A type converter that converts a `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp` to a `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/AnimationVector1D`, and vice versa.

### Dp.Companion.VisibilityThreshold

Cmn Artifact: [androidx.compose.animation:animation-core](https://developer.android.com/jetpack/androidx/releases/compose-animation) [View Source](https://cs.android.com/search?q=file:androidx/compose/animation/core/VisibilityThresholds.kt+symbol:VisibilityThreshold) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-animation#1.0.0)

```
val Dp.Companion.VisibilityThreshold: Dp
```

Visibility threshold for `https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/Dp`. This defines the amount of value change that is considered to be no longer visible. The animation system uses this to signal to some default `https://developer.android.com/reference/kotlin/androidx/compose/animation/core/package-summary#spring(kotlin.Float,kotlin.Float,kotlin.Any)` animations to stop when the value is close enough to the target.