UIView.AnimateKeyframesAsync メソッド

定義

現在のビューのキーフレーム ベースのアニメーションを設定するために使用するアニメーション アクション オブジェクトを作成します。

[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>

パラメーター

duration
Double

アニメーションの継続時間 (秒)。

delay
Double

アニメーションを開始するまでの時間 (秒単位)。

options
UIViewKeyframeAnimationOptions

開発者がアニメーションを実行する方法を示すオプションのマスクを指定します。

animations
Action

ビューにコミットする変更を含むアクション オブジェクト。

戻り値

完了ハンドラーが呼び出される前にアニメーションが終了したかどうかを示すブール値。

属性

注釈

このメソッドを使用することはお勧めしません。 アプリケーション開発者は、 クラスを使用 UIViewPropertyAnimator して UIView をアニメーション化する必要があります。

適用対象