public abstract class GuardedFrameCallback extends ChoreographerCompat.FrameCallback
NativeModuleCallExceptionHandler registered if
the app is in dev mode.| Modifier | Constructor and Description |
|---|---|
protected |
GuardedFrameCallback(ReactContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
doFrame(long frameTimeNanos)
Just a wrapper for frame callback, see
Choreographer.FrameCallback.doFrame(long). |
protected abstract void |
doFrameGuarded(long frameTimeNanos)
Like the standard doFrame but RuntimeExceptions will be caught and passed to
com.facebook.react.bridge.ReactContext#handleException(RuntimeException). |
protected GuardedFrameCallback(ReactContext reactContext)
public final void doFrame(long frameTimeNanos)
ChoreographerCompat.FrameCallbackChoreographer.FrameCallback.doFrame(long).doFrame in class ChoreographerCompat.FrameCallbackprotected abstract void doFrameGuarded(long frameTimeNanos)
com.facebook.react.bridge.ReactContext#handleException(RuntimeException).