AnimationExtensions.AnimateKinetic Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.