Function

advanceEventTime

Adds the given durationMillis to the current event time, delaying the next event by that time.

advanceEventTime

Deprecated

Replaced by TouchInjectionScope. Use performTouchInput instead of performGesture

Source set: Common
@ExperimentalTestApi
fun GestureScope.advanceEventTime(durationMillis: Long) =
    delegateScope.touch { advanceEventTime(durationMillis) }

Adds the given durationMillis to the current event time, delaying the next event by that time. Only valid when a gesture has already been started, or when a finished gesture is resumed.

Last updated: