Compartilhar via


UIView.InheritedAnimationDuration Propriedade

Definição

Método estático que retorna a duração da animação atualmente ativa, em segundos.

[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

Valor da propriedade

O valor padrão é 0.

Atributos

Comentários

Essa propriedade mostra a duração da animação ativa no momento.

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

Aplica-se a