Edit

Share via


CALayer.AnimationForKey(String) Method

Definition

Returns the animation associated with the key.

[Foundation.Export("animationForKey:")]
public virtual CoreAnimation.CAAnimation AnimationForKey (string key);
abstract member AnimationForKey : string -> CoreAnimation.CAAnimation
override this.AnimationForKey : string -> CoreAnimation.CAAnimation

Parameters

key
String

The animation's identifier.

Returns

The CAAnimation associated with key or null if there is no such animation.

Attributes

Applies to