()
| 197 | } |
| 198 | |
| 199 | public play(): AnimationPromise { |
| 200 | if (this.isPlaying) { |
| 201 | return this._rejectAlreadyPlaying(); |
| 202 | } |
| 203 | |
| 204 | const animationFinishedPromise = super.play(); |
| 205 | this._finishedAnimations = 0; |
| 206 | this._cancelledAnimations = 0; |
| 207 | this._iOSAnimationFunction(); |
| 208 | |
| 209 | return animationFinishedPromise; |
| 210 | } |
| 211 | |
| 212 | public cancel(): void { |
| 213 | if (!this.isPlaying) { |
no test coverage detected