SceneView.AnimationTimeTransformer

公共静态接口 SceneView.AnimationTimeTransformer

定义从 Choreographer 时间到动画时间的转换。用于控制 SceneView 中动画的播放。

公共方法

抽象抽象 long
getAnimationTime(长 choreographerTime)
转换 Choreographer 生成的纳秒时间,以生成动画更新时间。

公共方法

public abstract long getAnimationTime (long choreographerTime)

转换 Choreographer 生成的纳秒时间,以生成动画更新时间。输入纳米时间可用于确保返回的时间永不减少。

参数
ChoreographerTime Choreographer 返回的当前帧时间。