Animation.RestrictDuration(Int64) 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.
Ensure that the duration that this animation will run is not longer than <var>durationMillis</var>.
[Android.Runtime.Register("restrictDuration", "(J)V", "GetRestrictDuration_JHandler")]
public virtual void RestrictDuration (long durationMillis);
[<Android.Runtime.Register("restrictDuration", "(J)V", "GetRestrictDuration_JHandler")>]
abstract member RestrictDuration : int64 -> unit
override this.RestrictDuration : int64 -> unit
Parameters
- durationMillis
- Int64
The maximum duration the animation is allowed to run.
- Attributes
Remarks
Ensure that the duration that this animation will run is not longer than <var>durationMillis</var>. In addition to adjusting the duration itself, this ensures that the repeat count also will not make it run longer than the given time.
Java documentation for android.view.animation.Animation.restrictDuration(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.