Package ch.bailu.gtk.adw
Schnittstelle SwipeTracker.OnEndSwipe
- Umschließende Klasse:
SwipeTracker
- Funktionsschnittstelle:
- Dies ist eine funktionale Schnittstelle, die somit als Zuweisungsziel für einen Lambdaausdruck oder eine Methodenreferenz verwendet werden kann.
-
Methodenübersicht
Modifizierer und TypMethodeBeschreibungvoid
onEndSwipe
(double velocity, double to) This signal is emitted as soon as the gesture has stopped.
-
Methodendetails
-
onEndSwipe
void onEndSwipe(double velocity, double to) This signal is emitted as soon as the gesture has stopped.
The user is expected to animate the deceleration from the current progress
value to @to with an animation using @velocity as the initial velocity,
provided in pixels per second. [class@SpringAnimation] is usually a good
fit for this.- Parameter:
velocity
- the velocity of the swipeto
- the progress value to animate to
-