CALayer.AddAnimation(CAAnimation, String) Method
Definition
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.
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