()
| 206 | } |
| 207 | |
| 208 | protected _play(): void { |
| 209 | if (SDK_VERSION <= 23) { |
| 210 | this._animatorSet = new android.animation.AnimatorSet(); |
| 211 | this._animatorSet.addListener(this._animatorListener); |
| 212 | } |
| 213 | |
| 214 | if (this._animators.length > 0) { |
| 215 | if (this._playSequentially) { |
| 216 | this._animatorSet.playSequentially(this._nativeAnimatorsArray); |
| 217 | } else { |
| 218 | this._animatorSet.playTogether(this._nativeAnimatorsArray); |
| 219 | } |
| 220 | } |
| 221 | |
| 222 | if (Trace.isEnabled()) { |
| 223 | Trace.write('Starting ' + this._nativeAnimatorsArray.length + ' animations ' + (this._playSequentially ? 'sequentially.' : 'together.'), Trace.categories.Animation); |
| 224 | } |
| 225 | |
| 226 | this._animatorSet.setupStartValues(); |
| 227 | this._animatorSet.start(); |
| 228 | } |
| 229 | |
| 230 | private _onAndroidAnimationEnd() { |
| 231 | // tslint:disable-line |
no test coverage detected