Swipeable

interface Swipeable

An interface for swipeable widgets.

The AdwSwipeable interface is implemented by all swipeable widgets.

See class@SwipeTracker for details about implementing it.

Skipped during bindings generation

  • parameter n_snap_points: n_snap_points: Out parameter is not supported

Inheritors

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
abstract val adwSwipeablePointer: <Error class: unknown class><<Error class: unknown class>>

Functions

Link copied to clipboard

Gets the progress @self will snap back to after the gesture is canceled.

Link copied to clipboard
open fun getDistance(): Double

Gets the swipe distance of @self.

Link copied to clipboard
open fun getProgress(): Double

Gets the current progress of @self.

Link copied to clipboard
open fun getSwipeArea(navigationDirection: NavigationDirection, isDrag: Boolean, rect: <Error class: unknown class>)

Gets the area @self can start a swipe from for the given direction and gesture type.