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

*** ** * ** ***


```
public final class ProgressDomain
```

<br />

*** ** * ** ***

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

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

## Summary

| ### Public fields |
|---|---|
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ProgressDomain` | `https://developer.android.com/reference/androidx/ink/brush/behavior/ProgressDomain#DISTANCE_IN_CENTIMETERS()` Progress in input distance traveled since the start of the stroke, measured in centimeters. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ProgressDomain` | `https://developer.android.com/reference/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. |
| `static final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/behavior/ProgressDomain` | `https://developer.android.com/reference/androidx/ink/brush/behavior/ProgressDomain#TIME_IN_SECONDS()` Progress in input time since the start of the stroke, measured in seconds. |

| ### Public methods |
|---|---|
| `final @https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/androidx/ink/brush/Version` | `https://developer.android.com/reference/androidx/ink/brush/behavior/ProgressDomain#calculateMinimumRequiredVersion()()` Returns the minimum required `https://developer.android.com/reference/androidx/ink/brush/Version` for this `https://developer.android.com/reference/androidx/ink/brush/behavior/ProgressDomain`. |
| `@https://developer.android.com/reference/androidx/annotation/NonNull https://developer.android.com/reference/java/lang/String.html` | `https://developer.android.com/reference/androidx/ink/brush/behavior/ProgressDomain#toString()()` |

## Public fields

### DISTANCE_IN_CENTIMETERS

```
public static final @NonNull ProgressDomain DISTANCE_IN_CENTIMETERS
```

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

```
public static final @NonNull 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.

### TIME_IN_SECONDS

```
public static final @NonNull ProgressDomain TIME_IN_SECONDS
```

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

## Public methods

### calculateMinimumRequiredVersion

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

```
public final @NonNull Version calculateMinimumRequiredVersion()
```

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

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

### toString

```
public @NonNull String toString()
```