# ProgressDomain

Artifact: [androidx.ink:ink-brush](https://developer.android.com/jetpack/androidx/releases/ink) [View Source](https://cs.android.com/search?q=file:androidx/ink/brush/behavior/ProgressDomain.kt+class:androidx.ink.brush.behavior.ProgressDomain) Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

*** ** * ** ***

Common/All
- Cmn

  ```
  class ProgressDomain
  ```

*** ** * ** ***

Dimensions and units for measuring distance/time along the length/duration of a stroke.

This is used for `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/DampingNode`s, `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/IntegralNode`s, and `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/NoiseNode`s to specify the domain over which they operate.

## Summary

| ### Public companion properties |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain#DISTANCE_IN_CENTIMETERS()` Progress in input distance traveled since the start of the stroke, measured in centimeters. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain#DISTANCE_IN_MULTIPLES_OF_BRUSH_SIZE()` Progress in input distance traveled since the start of the stroke, measured in multiples of the brush size. | Cmn |
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain#TIME_IN_SECONDS()` Progress in input time since the start of the stroke, measured in seconds. | Cmn |

| ### Public functions |
|---|---|---|
| `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain#calculateMinimumRequiredVersion()()` Returns the minimum required `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` for this `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain`. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-string/index.html` | `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain#toString()()` | Cmn |

## Public companion properties

### DISTANCE_IN_CENTIMETERS

Cmn

```
val DISTANCE_IN_CENTIMETERS: ProgressDomain
```

Progress in input distance traveled since the start of the stroke, measured in centimeters. If the stroke input data does not indicate the relationship between stroke units and physical units (e.g. as may be the case for programmatically-generated inputs), then any node relying on this domain will emit null.

### DISTANCE_IN_MULTIPLES_OF_BRUSH_SIZE

Cmn

```
val DISTANCE_IN_MULTIPLES_OF_BRUSH_SIZE: ProgressDomain
```

Progress in input distance traveled since the start of the stroke, measured in multiples of the brush size.

### TIME_IN_SECONDS

Cmn

```
val TIME_IN_SECONDS: ProgressDomain
```

Progress in input time since the start of the stroke, measured in seconds.

## Public functions

### calculateMinimumRequiredVersion

Cmn Added in [1.1.0-alpha11](https://developer.android.com/jetpack/androidx/releases/ink#1.1.0-alpha11)

```
fun calculateMinimumRequiredVersion(): Version
```

Returns the minimum required `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version` for this `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain`.

By default, decoding a `https://developer.android.com/reference/kotlin/androidx/ink/brush/BrushFamily` containing a `https://developer.android.com/reference/kotlin/androidx/ink/brush/behavior/ProgressDomain` with a minimum required version higher than `https://developer.android.com/reference/kotlin/androidx/ink/brush/Version#MAX_SUPPORTED()` will fail.

### toString

Cmn

```
open fun toString(): String
```