/** * Aborts this timeline. The timeline transitions to the * {@link TimelineState#IDLE} state. No application callbacks or field * interpolations are done. * * @see #cancel() * @see #end() */ public void abort() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.ABORT, null); }
public void replay() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().play(Timeline.this, true, 0); } }); }
/** * Aborts this timeline. The timeline transitions to the * {@link TimelineState#IDLE} state. No application callbacks or field * interpolations are done. * * @see #cancel() * @see #end() */ public void abort() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.ABORT, null); }
public void replayReverse() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().playReverse(Timeline.this, true, 0); } }); }
public void suspend() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.SUSPEND, null); }
/** * Aborts this timeline. The timeline transitions to the * {@link TimelineState#IDLE} state. No application callbacks or field * interpolations are done. * * @see #cancel() * @see #end() */ public void abort() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.ABORT, null); }
public void replay() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().play(Timeline.this, true, 0); } }); }
public void resume() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.RESUME, null); }
public void replay() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().play(Timeline.this, true, 0); } }); }
public void replayReverse() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().playReverse(Timeline.this, true, 0); } }); }
public void replayReverse() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().playReverse(Timeline.this, true, 0); } }); }
public void suspend() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.SUSPEND, null); }
public void resume() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.RESUME, null); }
public void suspend() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.SUSPEND, null); }
public void resume() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.RESUME, null); }
/** * Cancels this timeline. The timeline transitions to the * {@link TimelineState#CANCELLED} state, preserving its current timeline * position. After application callbacks and field interpolations are done * on the {@link TimelineState#CANCELLED} state, the timeline transitions to * the {@link TimelineState#IDLE} state. Application callbacks and field * interpolations are done on this state as well. * * @see #end() * @see #abort() */ public void cancel() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.CANCEL, null); }
public void playReverseSkipping(final long msToSkip) { if ((this.initialDelay + this.duration) < msToSkip) { throw new IllegalArgumentException( "Required skip longer than initial delay + duration"); } TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().playReverse(Timeline.this, false, msToSkip); } }); }
public void playSkipping(final long msToSkip) { if ((this.initialDelay + this.duration) < msToSkip) { throw new IllegalArgumentException( "Required skip longer than initial delay + duration"); } TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().play(Timeline.this, false, msToSkip); } }); }
public void playReverseSkipping(final long msToSkip) { if ((this.initialDelay + this.duration) < msToSkip) { throw new IllegalArgumentException( "Required skip longer than initial delay + duration"); } TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.PLAY, new Runnable() { @Override public void run() { Timeline.this.isLooping = false; TimelineEngine.getInstance().playReverse(Timeline.this, false, msToSkip); } }); }
/** * Cancels this timeline. The timeline transitions to the * {@link TimelineState#CANCELLED} state, preserving its current timeline * position. After application callbacks and field interpolations are done * on the {@link TimelineState#CANCELLED} state, the timeline transitions to * the {@link TimelineState#IDLE} state. Application callbacks and field * interpolations are done on this state as well. * * @see #end() * @see #abort() */ public void cancel() { TimelineEngine.getInstance().runTimelineOperation(this, TimelineOperationKind.CANCEL, null); }