Udostępnij za pośrednictwem


ValueAnimator.CurrentPlayTime Property

Definition

Gets the current position of the animation in time, which is equal to the current time minus the time that the animation started. -or- Sets the position of the animation to the specified point in time.

public virtual long CurrentPlayTime { [Android.Runtime.Register("getCurrentPlayTime", "()J", "GetGetCurrentPlayTimeHandler")] get; [Android.Runtime.Register("setCurrentPlayTime", "(J)V", "GetSetCurrentPlayTime_JHandler")] set; }
[<get: Android.Runtime.Register("getCurrentPlayTime", "()J", "GetGetCurrentPlayTimeHandler")>]
[<set: Android.Runtime.Register("setCurrentPlayTime", "(J)V", "GetSetCurrentPlayTime_JHandler")>]
member this.CurrentPlayTime : int64 with get, set

Property Value

The current position in time of the animation.

Attributes

Remarks

Property getter documentation:

Gets the current position of the animation in time, which is equal to the current time minus the time that the animation started. An animation that is not yet started will return a value of zero, unless the animation has has its play time set via #setCurrentPlayTime(long) or #setCurrentFraction(float), in which case it will return the time that was set.

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

Property setter documentation:

Sets the position of the animation to the specified point in time. This time should be between 0 and the total duration of the animation, including any repetition. If the animation has not yet been started, then it will not advance forward after it is set to this time; it will simply set the time to this value and perform any appropriate actions based on that time. If the animation is already running, then setCurrentPlayTime() will set the current playing time to this value and continue playing from that point.

Java documentation for android.animation.ValueAnimator.setCurrentPlayTime(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