AnimationExtensions.AnimateKinetic Method

Definition

Sets the specified parameters and starts the kinetic animation.

public static void AnimateKinetic (this Xamarin.Forms.IAnimatable self, string name, Func<double,double,bool> callback, double velocity, double drag, Action finished = default);
static member AnimateKinetic : Xamarin.Forms.IAnimatable * string * Func<double, double, bool> * double * double * Action -> unit

Parameters

self
IAnimatable

The object on which this method will be run.

name
System.String

An animation key that should be unique among its sibling and parent animations for the duration of the animation.

callback
System.Func<System.Double,System.Double,System.Boolean>

An action that is called with successive animation values.

velocity
System.Double

The amount that the animation progresses in each animation step. For example, a velocity of 1 progresses at the default speed.

drag
System.Double

The amount that the progression speed is reduced per frame. Can be negative.

finished
System.Action

An action to call when the animation is finished.

Applies to