AnimationExtensions.AbortAnimation(IAnimatable, String) Método
Definição
Interrompe a animação.Stops the animation.
public static bool AbortAnimation (this Xamarin.Forms.IAnimatable self, string handle);
static member AbortAnimation : Xamarin.Forms.IAnimatable * string -> bool
Parâmetros
- self
- IAnimatable
O objeto no qual esse método será executado.The object on which this method will be run.
- handle
- String
Uma chave de animação deve ser exclusiva entre suas animações pai e irmã pela duração da animação.An animation key that must be unique among its sibling and parent animations for the duration of the animation.
Retornos
Comentários
Se se handle
referir a uma animação que pertence a essa IAnimatable instância, seus manipuladores Tweener serão removidos, o Tweener será interrompido, a animação será removida dessa IAnimatable instância e será marcada como concluída.If handle
refers to an animation that belongs to this IAnimatable instance, then its tweener handlers are removed, the tweener is stopped, the animation is removed from this IAnimatable instance, and it is marked as finished. Se se handle
referir a um dos Kinetics que pertencem a essa IAnimatable instância, ele e seu marcador serão removidos.If handle
refers to one of the kinetics that belong to this IAnimatable instance, then it and its ticker are removed.