{% setvar book_path %}/reference/androidx/_book.yaml{% endsetvar %} {% include "_shared/_reference-head-tags.html" %}

AndroidViewConfiguration

public final class AndroidViewConfiguration implements ViewConfiguration


Summary

Public constructors

Public methods

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.

Inherited methods

From androidx.compose.ui.platform.ViewConfiguration
@NonNull DpSize

The minimum touch target size.

Public constructors

AndroidViewConfiguration

public AndroidViewConfiguration(@NonNull ViewConfiguration viewConfiguration)

Public methods

getDoubleTapMinTimeMillis

public long getDoubleTapMinTimeMillis()

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.

getDoubleTapTimeoutMillis

public long getDoubleTapTimeoutMillis()

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.

getLongPressTimeoutMillis

public long getLongPressTimeoutMillis()

The duration before a press turns into a long press.

getTouchSlop

public float getTouchSlop()

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