UIView.InheritedAnimationDuration Property
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Static method that returns the currently-active animation's duration, in seconds.
C#
[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
The default value is 0.
- Attributes
This property shows the duration of the currently-active animation.
C#
UIView.Animate(2.0, () => {
//...Animation
var inheritedDuration = UIView.InheritedAnimationDuration;
// inheritedDuration == 2.0
});
var defaultDuration = UIView.InheritedAnimationDuration;
// defaultDuration == 0.0
Produkt | Versiounen |
---|---|
Xamarin iOS SDK | 12 |