MCPcopy Create free account
hub / github.com/NativeScript/NativeScript / _play

Method _play

packages/core/ui/animation/index.android.ts:208–228  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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

Callers 1

playMethod · 0.95

Calls 4

addListenerMethod · 0.80
isEnabledMethod · 0.80
writeMethod · 0.65
startMethod · 0.45

Tested by

no test coverage detected