# ViewConfiguration

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/platform/ViewConfiguration.kt+class:androidx.compose.ui.platform.ViewConfiguration) Added in [1.0.0](https://developer.android.com/jetpack/androidx/releases/compose-ui#1.0.0) Common/AllAndroid/JVM
- Cmn

  ```
  interface ViewConfiguration
  ```
Known direct subclasses [AndroidViewConfiguration](https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/AndroidViewConfiguration)

|---|---|
| `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/AndroidViewConfiguration` | A `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration` with Android's default configurations. |

*** ** * ** ***

Contains methods to standard constants used in the UI for timeouts, sizes, and distances.

## Summary

| ### Public properties |
|---|---|---|
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#doubleTapMinTimeMillis()` The minimum duration between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#doubleTapTimeoutMillis()` The duration between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#handwritingGestureLineMargin()` Margin in pixels around text line bounds where stylus handwriting gestures should be supported. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#handwritingSlop()` Distance in pixels a stylus touch can wander before we think the user is handwriting. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-long/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#longPressTimeoutMillis()` The duration before a press turns into a long press. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#maximumFlingVelocity()` The maximum velocity a fling have at any given time. | Cmn |
| `open https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#minimumFlingVelocity()` Minimum velocity to initiate a fling, as measured in pixels per second | Cmn |
| `open https://developer.android.com/reference/kotlin/androidx/compose/ui/unit/DpSize` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#minimumTouchTargetSize()` The minimum touch target size. | Cmn |
| `https://kotlinlang.org/api/core/kotlin-stdlib/kotlin/-float/index.html` | `https://developer.android.com/reference/kotlin/androidx/compose/ui/platform/ViewConfiguration#touchSlop()` Distance in pixels a touch can wander before we think the user is scrolling. | Cmn |

## Public properties

### doubleTapMinTimeMillis

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

```
val doubleTapMinTimeMillis: Long
```

The minimum duration between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap.

### doubleTapTimeoutMillis

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

```
val doubleTapTimeoutMillis: Long
```

The duration between the first tap's up event and the second tap's down event for an interaction to be considered a double-tap.

### handwritingGestureLineMargin

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

```
open val handwritingGestureLineMargin: Float
```

Margin in pixels around text line bounds where stylus handwriting gestures should be supported.

### handwritingSlop

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

```
open val handwritingSlop: Float
```

Distance in pixels a stylus touch can wander before we think the user is handwriting.

### longPressTimeoutMillis

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

```
val longPressTimeoutMillis: Long
```

The duration before a press turns into a long press.

### maximumFlingVelocity

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

```
open val maximumFlingVelocity: Float
```

The maximum velocity a fling have at any given time. This value should be in pixels/second.

### minimumFlingVelocity

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

```
open val minimumFlingVelocity: Float
```

Minimum velocity to initiate a fling, as measured in pixels per second

### minimumTouchTargetSize

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

```
open val minimumTouchTargetSize: DpSize
```

The minimum touch target size. If layout has reduced the pointer input bounds below this, the touch target will be expanded evenly around the layout to ensure that it is at least this big.

### touchSlop

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

```
val touchSlop: Float
```

Distance in pixels a touch can wander before we think the user is scrolling.