Class VelocitySkiaAnimator
Basically a modified port of Android FlingAnimation
public class VelocitySkiaAnimator : SkiaValueAnimator, ISkiaAnimator, IDisposable
- Inheritance
-
VelocitySkiaAnimator
- Implements
- Inherited Members
- Extension Methods
Constructors
VelocitySkiaAnimator(SkiaControl)
public VelocitySkiaAnimator(SkiaControl parent)
Parameters
parentSkiaControl
Fields
MIN_VISIBLE_CHANGE_ALPHA
public const float MIN_VISIBLE_CHANGE_ALPHA = 0
Field Value
MIN_VISIBLE_CHANGE_PIXELS
public const float MIN_VISIBLE_CHANGE_PIXELS = 1
Field Value
MIN_VISIBLE_CHANGE_ROTATION_DEGREES
public const float MIN_VISIBLE_CHANGE_ROTATION_DEGREES = 0
Field Value
MIN_VISIBLE_CHANGE_SCALE
public const float MIN_VISIBLE_CHANGE_SCALE = 0
Field Value
THRESHOLD_MULTIPLIER
public const float THRESHOLD_MULTIPLIER = 0.75
Field Value
UNSET
public const float UNSET = 3.4028235E+38
Field Value
mFlingForce
protected VelocitySkiaAnimator.DragForce mFlingForce
Field Value
mMassState
protected VelocitySkiaAnimator.MassState mMassState
Field Value
Properties
Friction
The bigger the sooner animation will slow down, default is 1.0
public float Friction { get; set; }
Property Value
InverseK
public float InverseK { get; set; }
Property Value
InvertOnLimits
public bool InvertOnLimits { get; set; }
Property Value
MaxLimit
public float MaxLimit { get; }
Property Value
MinLimit
public float MinLimit { get; }
Property Value
Preset
public VelocitySkiaAnimator.PresetType Preset { get; set; }
Property Value
RemainingVelocity
This is set after we are done so we will know at OnStop if we have some energy left
public float RemainingVelocity { get; set; }
Property Value
Scale
public float Scale { get; set; }
Property Value
SnapBouncingIfVelocityLessThan
public float SnapBouncingIfVelocityLessThan { get; set; }
Property Value
mMaxOverscrollValue
Must be over 0
public float mMaxOverscrollValue { get; set; }
Property Value
mMaxVelocity
public float mMaxVelocity { get; set; }
Property Value
mMinOverscrollValue
Must be over 0
public float mMinOverscrollValue { get; set; }
Property Value
mMinVelocity
public float mMinVelocity { get; set; }
Property Value
mMinVisibleChange
public float mMinVisibleChange { get; set; }
Property Value
mVelocity
public float mVelocity { get; set; }
Property Value
mVerticalVelocityChange
public float mVerticalVelocityChange { get; set; }
Property Value
Methods
ClampOnStart()
protected override void ClampOnStart()
SetFriction(float)
public VelocitySkiaAnimator SetFriction(float value)
Parameters
valuefloat
Returns
SetVelocity(float)
public VelocitySkiaAnimator SetVelocity(float value)
Parameters
valuefloat
Returns
Stop()
public override void Stop()
UpdateValue(long, long)
Update mValue using time distance between rendered frames. Return true if anims is finished.
protected override bool UpdateValue(long deltaT, long deltaFromStart)