public abstract class GuardedFrameCallback extends ChoreographerCompat.FrameCallback
| Modifier | Constructor and Description |
|---|---|
protected |
GuardedFrameCallback(NativeModuleCallExceptionHandler exceptionHandler) |
protected |
GuardedFrameCallback(ReactContext reactContext)
Deprecated.
|
| 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). |
@Deprecated protected GuardedFrameCallback(ReactContext reactContext)
protected GuardedFrameCallback(NativeModuleCallExceptionHandler exceptionHandler)
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).