Upravit

Sdílet prostřednictvím


CALayer.AddAnimation(CAAnimation, String) Method

Definition

Adds the animation to the render tree for the layer and associates it in Actions with the key key.

[Foundation.Export("addAnimation:forKey:")]
public virtual void AddAnimation (CoreAnimation.CAAnimation animation, string key);
abstract member AddAnimation : CoreAnimation.CAAnimation * string -> unit
override this.AddAnimation : CoreAnimation.CAAnimation * string -> unit

Parameters

animation
CAAnimation
key
String

An identifier for the animation. If the key already exists in the layer, the previous animation is removed.

This parameter can be null.

Attributes

Applies to