Interface SceneView.AnimationTimeTransformer

  • Enclosing class:
    SceneView

    public static interface SceneView.AnimationTimeTransformer
    Defines a transform from Choreographer time to animation time. Used to control the playback of animations in a SceneView.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      long getAnimationTime​(long choreographerTime)
      Transforms nanosecond times generated from the Choreographer to generate the animation update time.
    • Method Detail

      • getAnimationTime

        long getAnimationTime​(long choreographerTime)
        Transforms nanosecond times generated from the Choreographer to generate the animation update time. The input nano time can be used to ensure that returned times never decrease.
        Parameters:
        choreographerTime - the current frame time returned from the Choreographer.