---
title: "ViewConfiguration"
description: "Contains methods to standard constants used in the UI for timeouts, sizes, and distances."
type: "interface"
---

<div class='type'>Interface</div>


<a id='references'></a>

<div class='sourceset sourceset-common'>Common</div>



```kotlin
@JvmDefaultWithCompatibility
interface ViewConfiguration
```


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


## Properties

<div class='sourceset sourceset-common'>Common</div>


```kotlin
val longPressTimeoutMillis: Long
```


The duration before a press turns into a long press.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val touchSlop: Float
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val handwritingSlop: Float
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
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.



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val maximumFlingVelocity: Float
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val minimumFlingVelocity: Float
```


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



<div class='sourceset sourceset-common'>Common</div>


```kotlin
val handwritingGestureLineMargin: Float
```


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




