UIView.AnimateAsync(Double, Action) Method

Definition

Animates the property changes that take place in the specified animation as an asynchronous operation.

public static System.Threading.Tasks.Task<bool> AnimateAsync (double duration, Action animation);
static member AnimateAsync : double * Action -> System.Threading.Tasks.Task<bool>

Parameters

duration
Double

Duration in seconds for the animation.

animation
Action

Code containing the changes that you will apply to your view.

Returns

Indicates whether the animation ran to completion or not.

Remarks

The use of this method is discouraged. Application developers should prefer to use the UIViewPropertyAnimator class to animate UIViews.

Applies to