ViewConfiguration

Known direct subclasses
AndroidViewConfiguration

A ViewConfiguration with Android's default configurations.


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

Summary

Public properties

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.

Cmn
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.

Cmn
open Float

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

Cmn
open Float

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

Cmn
Long

The duration before a press turns into a long press.

Cmn
open Float

The maximum velocity a fling have at any given time.

Cmn
open DpSize

The minimum touch target size.

Cmn
Float

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

Cmn

Public properties

doubleTapMinTimeMillis

val doubleTapMinTimeMillisLong

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

val doubleTapTimeoutMillisLong

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

open val handwritingGestureLineMarginFloat

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

handwritingSlop

open val handwritingSlopFloat

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

longPressTimeoutMillis

val longPressTimeoutMillisLong

The duration before a press turns into a long press.

maximumFlingVelocity

open val maximumFlingVelocityFloat

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

minimumTouchTargetSize

open val minimumTouchTargetSizeDpSize

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

val touchSlopFloat

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