Google 致力于为黑人社区推动种族平等。查看具体举措

AndroidViewConfiguration

class AndroidViewConfiguration : ViewConfiguration
kotlin.Any
   ↳ androidx.compose.ui.platform.AndroidViewConfiguration

Summary

Public constructors
<init>(viewConfiguration: ViewConfiguration)

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.

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.

Long

The duration before a press turns into a long press.

Float

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

Public constructors

<init>

AndroidViewConfiguration(viewConfiguration: ViewConfiguration)

Properties

doubleTapMinTimeMillis

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

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.

longPressTimeoutMillis

val longPressTimeoutMillis: Long

The duration before a press turns into a long press.

touchSlop

val touchSlop: Float

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