UIView.InheritedAnimationDuration プロパティ

定義

現在アクティブなアニメーションの継続時間を秒単位で返す静的メソッド。

[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static double InheritedAnimationDuration { [Foundation.Export("inheritedAnimationDuration")] [ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)] get; }
member this.InheritedAnimationDuration : double

プロパティ値

既定値は 0 です。

属性

注釈

このプロパティは、現在アクティブなアニメーションの期間を示します。

UIView.Animate(2.0, () => {
    //...Animation
    var inheritedDuration = UIView.InheritedAnimationDuration;
    // inheritedDuration == 2.0
});
var defaultDuration = UIView.InheritedAnimationDuration;
// defaultDuration == 0.0

適用対象