addTemporalCallback

public PathBuilder addTemporalCallback(double time, Runnable runnable)

This adds a temporal callback on the last Path added to the PathBuilder. This callback is set to run at a specified number of milliseconds after the start of the path.

Return

This returns itself with the updated data.

Parameters

time

This sets the number of milliseconds of wait between the start of the Path and the calling of the callback.

runnable

This sets the code for the callback to run. Use lambda statements for this.