@Implements(value=android.view.Choreographer.class) public class ShadowChoreographer extends Object
Choreographer.
This class maintains its own concept of the current time aimed at making animations
work correctly. Time starts out at 0 and advances by "frameInterval" every time
Choreographer.getFrameTimeNanos() is called.
| Constructor and Description |
|---|
ShadowChoreographer() |
| Modifier and Type | Method and Description |
|---|---|
static long |
getFrameInterval()
Return the current inter-frame interval.
|
long |
getFrameTimeNanos() |
static android.view.Choreographer |
getInstance() |
void |
postCallbackDelayed(int callbackType,
Runnable action,
Object token,
long delayMillis) |
void |
postFrameCallbackDelayed(android.view.Choreographer.FrameCallback callback,
long delayMillis) |
void |
removeCallbacks(int callbackType,
Runnable action,
Object token) |
void |
removeFrameCallback(android.view.Choreographer.FrameCallback callback) |
static void |
reset() |
static void |
setFrameInterval(long frameInterval)
Set the inter-frame interval used to advance the clock.
|
@Implementation public static android.view.Choreographer getInstance()
@Implementation
public void postCallbackDelayed(int callbackType,
Runnable action,
Object token,
long delayMillis)
@Implementation
public void removeCallbacks(int callbackType,
Runnable action,
Object token)
@Implementation
public void postFrameCallbackDelayed(android.view.Choreographer.FrameCallback callback,
long delayMillis)
@Implementation public void removeFrameCallback(android.view.Choreographer.FrameCallback callback)
@Implementation public long getFrameTimeNanos()
public static long getFrameInterval()
public static void setFrameInterval(long frameInterval)
frameInterval - Inter-frame interval.@Resetter public static void reset()
Copyright © 2016. All rights reserved.