Share via


UIView.AnimateAsync Method

Definition

Overloads

Name Description
AnimateAsync(Double, Action)

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

AnimateAsync(Double, NFloat, NFloat, Double, UIViewAnimationOptions, Action)

AnimateAsync(Double, Action)

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

AnimateAsync(Double, NFloat, NFloat, Double, UIViewAnimationOptions, Action)

[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static System.Threading.Tasks.Task<bool> AnimateAsync(double duration, System.Runtime.InteropServices.NFloat bounce, System.Runtime.InteropServices.NFloat velocity, double delay, UIKit.UIViewAnimationOptions options, Action animations);
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member AnimateAsync : double * System.Runtime.InteropServices.NFloat * System.Runtime.InteropServices.NFloat * double * UIKit.UIViewAnimationOptions * Action -> System.Threading.Tasks.Task<bool>

Parameters

duration
Double
bounce
NFloat
velocity
NFloat
delay
Double
animations
Action

Returns

Attributes

Applies to