-
public class ReactChoreographerA simple wrapper around Choreographer that allows us to control the order certain callbacks are executed within a given frame. The main difference is that we enforce this is accessed from the UI thread: this is because this ordering cannot be guaranteed across multiple threads.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description public enumReactChoreographer.CallbackType
-
Method Summary
Modifier and Type Method Description static voidinitialize()static ReactChoreographergetInstance()voidpostFrameCallback(ReactChoreographer.CallbackType type, ChoreographerCompat.FrameCallback frameCallback)voidinitializeChoreographer(@Nullable() Runnable runnable)voidremoveFrameCallback(ReactChoreographer.CallbackType type, ChoreographerCompat.FrameCallback frameCallback)-
-
Method Detail
-
initialize
static void initialize()
-
getInstance
static ReactChoreographer getInstance()
-
postFrameCallback
void postFrameCallback(ReactChoreographer.CallbackType type, ChoreographerCompat.FrameCallback frameCallback)
-
initializeChoreographer
void initializeChoreographer(@Nullable() Runnable runnable)
-
removeFrameCallback
void removeFrameCallback(ReactChoreographer.CallbackType type, ChoreographerCompat.FrameCallback frameCallback)
-
-
-
-