AndroidViewConfiguration


A ViewConfiguration with Android's default configurations. Derived from android.view.ViewConfiguration

Summary

Public constructors

android

Public properties

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

android
open 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.

android
open Float

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

android
open Float

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

android
open Long

The duration before a press turns into a long press.

android
open Float

The maximum velocity a fling have at any given time.

android
open Float

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

android

Inherited properties

From androidx.compose.ui.platform.ViewConfiguration
open DpSize

The minimum touch target size.

android

Public constructors

AndroidViewConfiguration

AndroidViewConfiguration(viewConfiguration: ViewConfiguration)

Public properties

doubleTapMinTimeMillis

open 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

open 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

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

touchSlop

open val touchSlopFloat

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