AnimationExtensions.AnimateKinetic(IAnimatable, String, Func<Double,Double,Boolean>, Double, Double, Action) 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 = null);
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
String

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

callback
Func<Double,Double,Boolean>

An action that is called with successive animation values.

velocity
Double

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

drag
Double

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

finished
Action

An action to call when the animation is finished.

Applies to