-
public class ReactChoreographer
A 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 enum
ReactChoreographer.CallbackType
-
Method Summary
Modifier and Type Method Description static void
initialize()
static ReactChoreographer
getInstance()
void
postFrameCallback(ReactChoreographer.CallbackType type, ChoreographerCompat.FrameCallback frameCallback)
void
initializeChoreographer(@Nullable() Runnable runnable)
void
removeFrameCallback(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)
-
-
-
-