-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeModuleCallExceptionHandler
,com.facebook.react.devsupport.interfaces.DevSupportManager
public final class BridgeDevSupportManager extends DevSupportManagerBase
Interface for accessing and interacting with development features. Following features are supported through this manager class: 1) Displaying JS errors (aka RedBox) 2) Displaying developers menu (Reload JS, Debug JS) 3) Communication with developer server in order to download updated JS bundle 4) Starting/stopping broadcast receiver for js reload signals 5) Starting/stopping motion sensor listener that recognize shake gestures which in turn may trigger developers menu. 6) Launching developers settings view This class automatically monitors the state of registered views and activities to which they are bound to make sure that we don't display overlay or that we we don't listen for sensor events when app is backgrounded. com.facebook.react.ReactInstanceManager implementation is responsible for instantiating this class as well as for populating with a reference to CatalystInstance whenever instance manager recreates it (through ). Also, instance manager is responsible for enabling/disabling dev support in case when app is backgrounded or when all the views has been detached from the instance (through { } method). IMPORTANT: In order for developer support to work correctly it is required that the manifest of your application contain the following entries: { } { }
-
-
Constructor Summary
Constructors Constructor Description BridgeDevSupportManager(Context applicationContext, ReactInstanceDevHelper reactInstanceManagerHelper, String packagerPathForJSBundleName, boolean enableOnCreate, RedBoxHandler redBoxHandler, DevBundleDownloadListener devBundleDownloadListener, int minNumShakes, Map<String, RequestHandler> customPackagerCommandHandlers, SurfaceDelegateFactory surfaceDelegateFactory)
-
Method Summary
Modifier and Type Method Description void
loadSplitBundleFromServer(String bundlePath, DevSplitBundleCallback callback)
void
handleReloadJS()
-
Methods inherited from class com.facebook.react.devsupport.DevSupportManagerBase
addCustomDevOption, createRootView, createSurfaceDelegate, destroyRootView, downloadBundleResourceFromUrlSync, fetchSplitBundleAndCreateBundleLoader, getCurrentActivity, getDevSettings, getDevSupportEnabled, getDownloadedJSBundleFile, getJSBundleURLForRemoteDebugging, getLastErrorCookie, getLastErrorStack, getLastErrorTitle, getLastErrorType, getRedBoxHandler, getSourceMapUrl, getSourceUrl, handleException, hasUpToDateJSBundleInCache, hideRedboxDialog, isPackagerRunning, onNewReactContextCreated, onReactInstanceDestroyed, processErrorCustomizers, registerErrorCustomizer, reloadJSFromServer, reloadJSFromServer, reloadSettings, setDevSupportEnabled, setFpsDebugEnabled, setHotModuleReplacementEnabled, setPackagerLocationCustomizer, setRemoteJSDebugEnabled, showDevOptionsDialog, showNewJSError, showNewJavaError, startInspector, stopInspector, toggleElementInspector, updateJSError
-
Methods inherited from class com.facebook.react.devsupport.interfaces.DevSupportManager
downloadBundleResourceFromUrlSync, getDevSettings, isPackagerRunning, loadSplitBundleFromServer, setPackagerLocationCustomizer, showNewJavaError, updateJSError
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
-
Constructor Detail
-
BridgeDevSupportManager
BridgeDevSupportManager(Context applicationContext, ReactInstanceDevHelper reactInstanceManagerHelper, String packagerPathForJSBundleName, boolean enableOnCreate, RedBoxHandler redBoxHandler, DevBundleDownloadListener devBundleDownloadListener, int minNumShakes, Map<String, RequestHandler> customPackagerCommandHandlers, SurfaceDelegateFactory surfaceDelegateFactory)
-
-
Method Detail
-
loadSplitBundleFromServer
void loadSplitBundleFromServer(String bundlePath, DevSplitBundleCallback callback)
-
handleReloadJS
void handleReloadJS()
-
-
-
-