편집

다음을 통해 공유


UIView.TransitionNotifyAsync Method

Definition

Overloads

TransitionNotifyAsync(UIView, Double, UIViewAnimationOptions, Action)

Creates a transition animation action that is used for the current container view.

TransitionNotifyAsync(UIView, UIView, Double, UIViewAnimationOptions)

Specifies a transition animation to be used between the specified UIViews.

TransitionNotifyAsync(UIView, Double, UIViewAnimationOptions, Action)

Creates a transition animation action that is used for the current container view.

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

Parameters

withView
UIView

View whose state is being manipulated and in which the animation should occur.

duration
Double

The duration of the animation in seconds.

options
UIViewAnimationOptions

A mask of options to be used with the animation.

animation
Action

Action containing the animation and state manipulation of the view.

Returns

A task that represents the asynchronous TransitionNotify operation.

Remarks

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

Applies to

TransitionNotifyAsync(UIView, UIView, Double, UIViewAnimationOptions)

Specifies a transition animation to be used between the specified UIViews.

public static System.Threading.Tasks.Task<bool> TransitionNotifyAsync (UIKit.UIView fromView, UIKit.UIView toView, double duration, UIKit.UIViewAnimationOptions options);
static member TransitionNotifyAsync : UIKit.UIView * UIKit.UIView * double * UIKit.UIViewAnimationOptions -> System.Threading.Tasks.Task<bool>

Parameters

fromView
UIView

The initial view.

toView
UIView

The final view.

duration
Double

The duration, in seconds, of the animation.

options
UIViewAnimationOptions

A mask of options to be used with the animation.

Returns

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

Remarks

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

Applies to