ValueAnimator.FrameDelay Property

Definition

The amount of time, in milliseconds, between each frame of the animation. -or- The amount of time, in milliseconds, between each frame of the animation.

public static long FrameDelay { [Android.Runtime.Register("getFrameDelay", "()J", "")] get; [Android.Runtime.Register("setFrameDelay", "(J)V", "")] set; }
[<get: Android.Runtime.Register("getFrameDelay", "()J", "")>]
[<set: Android.Runtime.Register("setFrameDelay", "(J)V", "")>]
static member FrameDelay : int64 with get, set

Property Value

the requested time between frames, in milliseconds

Attributes

Remarks

Property getter documentation:

The amount of time, in milliseconds, between each frame of the animation. This is a requested time that the animation will attempt to honor, but the actual delay between frames may be different, depending on system load and capabilities. This is a static function because the same delay will be applied to all animations, since they are all run off of a single timing loop.

The frame delay may be ignored when the animation system uses an external timing source, such as the display refresh rate (vsync), to govern animations.

Note that this method should be called from the same thread that #start() is called in order to check the frame delay for that animation. A runtime exception will be thrown if the calling thread does not have a Looper.

Java documentation for android.animation.ValueAnimator.getFrameDelay().

Property setter documentation:

The amount of time, in milliseconds, between each frame of the animation. This is a requested time that the animation will attempt to honor, but the actual delay between frames may be different, depending on system load and capabilities. This is a static function because the same delay will be applied to all animations, since they are all run off of a single timing loop.

The frame delay may be ignored when the animation system uses an external timing source, such as the display refresh rate (vsync), to govern animations.

Note that this method should be called from the same thread that #start() is called in order to have the new frame delay take effect on that animation. A runtime exception will be thrown if the calling thread does not have a Looper.

Java documentation for android.animation.ValueAnimator.setFrameDelay(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to