Edytuj

Udostępnij za pośrednictwem


UIView.AnimateKeyframesAsync Method

Definition

Creates an animation action object that is to be used to set up keyframe-based animations for the current view.

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

Parameters

duration
Double

Duration in seconds for the animation.

delay
Double

Duration in seconds before starting the animation.

options
UIViewKeyframeAnimationOptions

Designates a mask of options that indicates how the developer wants to perform the animations.

animations
Action

An action object that contains the changes to be committed to the views.

Returns

Boolean indicating whether animations finished before a completion handler was called.

Attributes

Remarks

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

Applies to