Share via


Transition.SetDuration(Int64) Method

Definition

Sets the duration of this transition.

[Android.Runtime.Register("setDuration", "(J)Landroid/transition/Transition;", "GetSetDuration_JHandler")]
public virtual Android.Transitions.Transition? SetDuration (long duration);
[<Android.Runtime.Register("setDuration", "(J)Landroid/transition/Transition;", "GetSetDuration_JHandler")>]
abstract member SetDuration : int64 -> Android.Transitions.Transition
override this.SetDuration : int64 -> Android.Transitions.Transition

Parameters

duration
Int64

The length of the animation, in milliseconds.

Returns

This transition object.

Attributes

Remarks

Sets the duration of this transition. By default, there is no duration (indicated by a negative number), which means that the Animator created by the transition will have its own specified duration. If the duration of a Transition is set, that duration will override the Animator duration.

Java documentation for android.transition.Transition.setDuration(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