# Size.Companion

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

  ```
  object Size.Companion
  ```

*** ** * ** ***

## Summary

| ### Public properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#Unspecified()` A size whose `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` are unspecified. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#Zero()` An empty size, one with a zero width and a zero height. | Cmn |

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

## Public properties

### Unspecified

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

```
val Unspecified: Size
```

A size whose `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#width()` and `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size#height()` are unspecified. This is a sentinel value used to initialize a non-null parameter. Access to width or height on an unspecified size is not allowed.

### Zero

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

```
val Zero: Size
```

An empty size, one with a zero width and a zero height.

## Extension properties

### Size.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 Size.Companion.VectorConverter: TwoWayConverter<Size, AnimationVector2D>
```

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

### Size.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 Size.Companion.VisibilityThreshold: Size
```

Visibility threshold for `https://developer.android.com/reference/kotlin/androidx/compose/ui/geometry/Size`. 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.