---
title: "multiTouchSwipe"
description: "Performs a multi touch swipe gesture on the associated node.

Each pointer follows [curves]&#91;i] from 0 till [durationMillis]. Sampling of an event is forced
at all times defined in [keyTimes]. The time between events is kept as close to
[eventPeriodMillis][InjectionScope.eventPeriodMillis] as possible, given the constraints. The
coordinates are in the node's local coordinate system, where (0, 0) is the top left corner of the
node. The default duration is 200 milliseconds."
type: "function"
---

<div class='type'>Function</div>


<a id='references'></a>
<div class='sourceset sourceset-common'>Common</div>


```kotlin
fun TouchInjectionScope.multiTouchSwipe(
    curves: List<(timeMillis: Long) -> Offset>,
    durationMillis: Long = 200,
    keyTimes: List<Long> = emptyList(),
)
```


Performs a multi touch swipe gesture on the associated node.

Each pointer follows `curves`&#91;i` from 0 till `durationMillis`. Sampling of an event is forced
at all times defined in `keyTimes`. The time between events is kept as close to
`eventPeriodMillis` as possible, given the constraints. The
coordinates are in the node's local coordinate system, where (0, 0) is the top left corner of the
node. The default duration is 200 milliseconds.

#### Parameters

| | |
| --- | --- |
| curves | The functions that describe the gesture. Function _i_ defines the position over time for pointer id _i_. The argument passed to each function is the time in milliseconds since the start of the swipe, and the return value is the location of that pointer at that point in time. |
| durationMillis | The duration of the gesture |
| keyTimes | An optional list of timestamps in milliseconds at which a move event must be sampled |




