Function

advanceEventTime

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

RevenueCat

RevenueCat

Add subscriptions to your apps in minutes

Ad Get started for free
Common
Deprecated Replaced by TouchInjectionScope. Use performTouchInput instead of performGesture

advanceEventTime

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