import CAAnimationDelegate from 'jscenekit/js/QuartzCore/CAAnimationDelegate.js'
CAAnimationDelegate
Methods your app can implement to respond when animations start and stop.
Method Summary
Public Methods | ||
public |
animationDidStart(anim: CAAnimation): void Tells the delegate the animation has started. |
|
public |
animationDidStopFinished(anim: CAAnimation, flag: boolean): void The animation may have ended because it has completed its active duration or because it has been removed from the layer it is attached to. |
Public Methods
public animationDidStart(anim: CAAnimation): void source
Tells the delegate the animation has started.
Params:
Name | Type | Attribute | Description |
anim | CAAnimation | The CAAnimation object that has started. |
Return:
void |
public animationDidStopFinished(anim: CAAnimation, flag: boolean): void source
The animation may have ended because it has completed its active duration or because it has been removed from the layer it is attached to. flag is true if the animation reached the end of its duration without being removed.
Params:
Name | Type | Attribute | Description |
anim | CAAnimation | The CAAnimation object that has ended. |
|
flag | boolean | A flag indicating whether the animation has completed by reaching the end of its duration. |
Return:
void |