ViewConfiguration
-
Cmn
interface ViewConfiguration
AndroidViewConfiguration |
A |
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 Float |
Minimum velocity to initiate a fling, as measured in pixels per second |
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 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.
handwritingGestureLineMargin
open val handwritingGestureLineMargin: Float
Margin in pixels around text line bounds where stylus handwriting gestures should be supported.
handwritingSlop
open val handwritingSlop: Float
Distance in pixels a stylus touch can wander before we think the user is handwriting.
longPressTimeoutMillis
val longPressTimeoutMillis: Long
The duration before a press turns into a long press.
maximumFlingVelocity
open val maximumFlingVelocity: Float
The maximum velocity a fling have at any given time. This value should be in pixels/second.
minimumFlingVelocity
open val minimumFlingVelocity: Float
Minimum velocity to initiate a fling, as measured in pixels per second
minimumTouchTargetSize
open val minimumTouchTargetSize: DpSize
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.