• Sceneform SDK for Android was open sourced and archived (github.com/google-ar/sceneform-android-sdk) with version 1.16.0.
  • This site (developers.google.com/sceneform) serves as the documentation archive for the previous version, Sceneform SDK for Android 1.15.0.
  • Do not use version 1.17.0 of the Sceneform Maven artifacts.
  • The 1.17.1 Maven artifacts can be used. Other than the version, however, the 1.17.1 artifacts are identical to the 1.15.0 artifacts.

SceneView.AnimationTimeTransformer

public static interface SceneView.AnimationTimeTransformer

Defines a transform from Choreographer time to animation time. Used to control the playback of animations in a SceneView.

Public Methods

abstract long
getAnimationTime(long choreographerTime)
Transforms nanosecond times generated from the Choreographer to generate the animation update time.

Public Methods

public abstract 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.