Class SKFlingGestureEventArgs
Provides data for fling gesture events, including the initial fling detection and per-frame animation updates.
public class SKFlingGestureEventArgs : EventArgs
- Inheritance
-
SKFlingGestureEventArgs
- Inherited Members
Remarks
This class is used by two distinct events:
- FlingDetected / FlingDetected: Fired once when a fling is initiated. Velocity contains the initial velocity. Delta is Empty.
- FlingUpdated: Fired each animation frame during the fling deceleration. Velocity contains the current (decaying) velocity, and Delta contains the per-frame displacement in pixels.
Constructors
- SKFlingGestureEventArgs(SKPoint)
Initializes a new instance of the SKFlingGestureEventArgs class with velocity only. Used for the initial FlingDetected event.
- SKFlingGestureEventArgs(SKPoint, SKPoint)
Initializes a new instance of the SKFlingGestureEventArgs class with velocity and per-frame displacement. Used for FlingUpdated events.
Properties
- Delta
Gets the displacement for this animation frame.
- Speed
Gets the current speed (magnitude of the velocity vector).
- Velocity
Gets the velocity of the fling.