Gestures State
A state holder for gesture configuration and gesture event observation.
Obtain an instance through MapState.gesturesState.
Use gesturesSettings to configure which gestures are enabled, and GestureInput to observe individual gesture events in a coroutine-based, lifecycle-aware fashion.
Constructors
Types
Public companion object of GesturesState.
Functions
Suspends until the coroutine is canceled, collecting each map attachment and running block with a GestureScope receiver. When the map is replaced or detaches, the current block invocation is canceled and restarted on the new map.
Returns true if a gesture is currently in progress.
Returns true if a user-initiated animation is currently in progress.
Properties
Extensions
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 key1, key2, 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, key3, 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.