Android.Views.Animations.Animation.RestrictDuration Method
Ensure that the duration that this animation will run is not longer than durationMillis.

Syntax

[Android.Runtime.Register("restrictDuration", "(J)V", "GetRestrictDuration_JHandler")]
public virtual void RestrictDuration (long durationMillis)

Parameters

durationMillis
The maximum duration the animation is allowed to run.

Remarks

Ensure that the duration that this animation will run is not longer than durationMillis. In addition to adjusting the duration itself, this ensures that the repeat count also will not make it run longer than the given time.

[Android Documentation]

Requirements

Namespace: Android.Views.Animations
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 1