Package-level declarations

Types

Link copied to clipboard

Receiver scope for registering gesture listeners on a MapboxMap.

Link copied to clipboard
class GesturesState(initialGesturesSettings: GesturesSettings = GesturesSettings { })

A state holder for gesture configuration and gesture event observation.

Functions

Link copied to clipboard

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.

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.

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.

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.

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.

Link copied to clipboard
inline fun rememberGesturesState(key: String? = null, crossinline init: GesturesState.() -> Unit = {}): GesturesState

Create and remember a GesturesState with init block.