GestureInput

@Composable
fun GesturesState.GestureInput(block: suspend GestureScope.() -> Unit)

Runs block with a GestureScope receiver in a coroutine scoped to the map attachment lifecycle. The coroutine is canceled and restarted whenever the map reattaches.

Parameters

block

a suspend lambda with GestureScope receiver.


@Composable
fun GesturesState.GestureInput(key1: Any?, block: suspend GestureScope.() -> Unit)

Runs block with a GestureScope receiver in a coroutine scoped to the map attachment lifecycle. The coroutine is canceled and restarted when key1 or the map changes.

Parameters

key1

restarts the effect when it changes.

block

a suspend lambda with GestureScope receiver.


@Composable
fun GesturesState.GestureInput(key1: Any?, key2: Any?, block: suspend GestureScope.() -> Unit)

Runs block with a GestureScope receiver in a coroutine scoped to the map attachment lifecycle. The coroutine is canceled and restarted when key1, key2, or the map changes.

Parameters

key1

restarts the effect when it changes.

key2

restarts the effect when it changes.

block

a suspend lambda with GestureScope receiver.


@Composable
fun GesturesState.GestureInput(key1: Any?, key2: Any?, key3: Any?, block: suspend GestureScope.() -> Unit)

Runs block with a GestureScope receiver in a coroutine scoped to the map attachment lifecycle. The coroutine is canceled and restarted when key1, key2, key3, or the map changes.

Parameters

key1

restarts the effect when it changes.

key2

restarts the effect when it changes.

key3

restarts the effect when it changes.

block

a suspend lambda with GestureScope receiver.


@Composable
fun GesturesState.GestureInput(vararg keys: Any?, block: suspend GestureScope.() -> Unit)

Runs block with a GestureScope receiver in a coroutine scoped to the map attachment lifecycle. The coroutine is canceled and restarted when any value in keys or the map changes.

Parameters

keys

restarts the effect when any element changes.

block

a suspend lambda with GestureScope receiver.