Freigeben über


UIView.InheritedAnimationDuration Eigenschaft

Definition

Statische Methode, die die Dauer der derzeit aktiven Animation in Sekunden zurückgibt.

[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

Eigenschaftswert

Der Standardwert ist 0.

Attribute

Hinweise

Diese Eigenschaft zeigt die Dauer der derzeit aktiven Animation an.

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

Gilt für: