Google is committed to advancing racial equity for Black communities. See how.

ViewConfiguration

interface ViewConfiguration
androidx.compose.ui.platform.ViewConfiguration

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

Summary

Properties
abstract Duration

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.

abstract Duration

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.

abstract Duration

The duration before a press turns into a long press.

abstract Float

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

Properties

doubleTapMinTime

abstract val doubleTapMinTime: Duration

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.

doubleTapTimeout

abstract val doubleTapTimeout: Duration

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.

longPressTimeout

abstract val longPressTimeout: Duration

The duration before a press turns into a long press.

touchSlop

abstract val touchSlop: Float

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