- 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
Stay organized with collections
Save and categorize content based on your preferences.
Defines a transform from Choreographer
time to animation time. Used to control the
playback of animations in a SceneView
.
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 .
|
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-06-26 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-06-26 UTC."],[[["`SceneView.AnimationTimeTransformer` is an interface in ARCore's Sceneform used to control the timing of animations within a `SceneView`."],["It provides a method, `getAnimationTime`, which converts the Choreographer's frame time into the desired animation time, enabling custom animation playback speeds and behaviors."],["By implementing this interface, developers can manipulate the animation timeline, allowing effects like slow motion, fast forward, or even pausing and resuming animations."]]],["The `SceneView.AnimationTimeTransformer` interface transforms `Choreographer` time to animation time, controlling animation playback in a `SceneView`. The core action is performed by the `getAnimationTime(long choreographerTime)` method. This method takes the current frame time from the `Choreographer` as input and returns the corresponding animation update time. This allows for control over animation time based on nanosecond time input from the `Choreographer`, ensuring that time values are non decreasing.\n"]]