Upravit

Sdílet prostřednictvím


UIView.AnimateNotifyAsync Method

Definition

Overloads

AnimateNotifyAsync(Double, Action)

Animates the property changes that take place in the specified action and invokes a completion callback when the animation completes.

AnimateNotifyAsync(Double, Double, UIViewAnimationOptions, Action)

Executes the specified animation as an asynchronous operation.

AnimateNotifyAsync(Double, Double, nfloat, nfloat, UIViewAnimationOptions, Action)

Executes a view animation that uses a timing curve that corresponds to the activity of a physical spring.

AnimateNotifyAsync(Double, Action)

Animates the property changes that take place in the specified action and invokes a completion callback when the animation completes.

public static System.Threading.Tasks.Task<bool> AnimateNotifyAsync (double duration, Action animation);
static member AnimateNotifyAsync : 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

System.Threading.Tasks.Task<System.Boolean>

Remarks

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

Applies to

AnimateNotifyAsync(Double, Double, UIViewAnimationOptions, Action)

Executes the specified animation as an asynchronous operation.

public static System.Threading.Tasks.Task<bool> AnimateNotifyAsync (double duration, double delay, UIKit.UIViewAnimationOptions options, Action animation);
static member AnimateNotifyAsync : double * double * UIKit.UIViewAnimationOptions * Action -> System.Threading.Tasks.Task<bool>

Parameters

duration
Double

Duration in seconds for the animation.

delay
Double

Delay before the animation begins.

options
UIViewAnimationOptions

Animation options.

animation
Action

The changes to be applied to the view.

Returns

Remarks

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

Applies to

AnimateNotifyAsync(Double, Double, nfloat, nfloat, UIViewAnimationOptions, Action)

Executes a view animation that uses a timing curve that corresponds to the activity of a physical spring.

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 7, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static System.Threading.Tasks.Task<bool> AnimateNotifyAsync (double duration, double delay, nfloat springWithDampingRatio, nfloat initialSpringVelocity, UIKit.UIViewAnimationOptions options, Action animations);
static member AnimateNotifyAsync : double * double * nfloat * nfloat * UIKit.UIViewAnimationOptions * Action -> System.Threading.Tasks.Task<bool>

Parameters

duration
Double

Duration in seconds for the animation.

delay
Double

Delay before the animation begins.

springWithDampingRatio
nfloat

Damping ratio set for spring animation when it is approaching its quiescent state. Value between 0 and 1 representing the amount of damping to apply to the spring effect.

initialSpringVelocity
nfloat

Initial spring velocity prior to attachment. The initial velocity of the spring, in points per second.

options
UIViewAnimationOptions

Animation options.

animations
Action

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

Returns

A task that represents the asynchronous AnimateNotify operation. The value of the TResult parameter is a UICompletionHandler.

Attributes

Remarks

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

The AnimateNotifyAsync method is suitable to be used with C# async by returning control to the caller with a Task representing the operation.

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

Applies to