DevSupportManager

Interface for accessing and interacting with development features. In dev mode, use the implementation BridgeDevSupportManager. In production mode, use the dummy implementation ReleaseDevSupportManager.

Inheritors

Types

Link copied to clipboard

The PackagerLocationCustomizer allows you to have a dynamic packager location that is determined right before loading the packager. Your customizer must call |callback|, as loading will be blocked waiting for it to resolve.

Properties

Link copied to clipboard
abstract val currentActivity: Activity?
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
abstract val lastErrorCookie: Int
Link copied to clipboard
Link copied to clipboard
abstract val lastErrorTitle: String?
Link copied to clipboard
abstract val lastErrorType: ErrorType?
Link copied to clipboard
Link copied to clipboard
abstract val sourceMapUrl: String?
Link copied to clipboard
abstract val sourceUrl: String?

Functions

Link copied to clipboard
abstract fun addCustomDevOption(optionName: String, optionHandler: DevOptionHandler)
Link copied to clipboard
abstract fun createRootView(appKey: String): View?
Link copied to clipboard
abstract fun createSurfaceDelegate(moduleName: String): SurfaceDelegate?

Create the surface delegate that the provided module should use to interact with

Link copied to clipboard
abstract fun destroyRootView(rootView: View?)
Link copied to clipboard
abstract fun downloadBundleResourceFromUrlSync(resourceURL: String, outputFile: File): File?
Link copied to clipboard
abstract fun handleException(e: Exception)

Do something to display or log the exception.

Link copied to clipboard
abstract fun handleReloadJS()
Link copied to clipboard
Link copied to clipboard

Hides the "paused in debugger" overlay, if currently shown.

Link copied to clipboard
abstract fun hideRedboxDialog()
Link copied to clipboard
Link copied to clipboard
abstract fun loadSplitBundleFromServer(bundlePath: String, callback: DevSplitBundleCallback)
Link copied to clipboard
abstract fun onNewReactContextCreated(reactContext: ReactContext)
Link copied to clipboard
abstract fun onReactInstanceDestroyed(reactContext: ReactContext)
Link copied to clipboard
abstract fun openDebugger()

Attempt to open the JS debugger on the host machine.

Link copied to clipboard
Link copied to clipboard
abstract fun registerErrorCustomizer(errorCustomizer: ErrorCustomizer)
Link copied to clipboard
abstract fun reloadJSFromServer(bundleURL: String, callback: BundleLoadCallback)
Link copied to clipboard
abstract fun reloadSettings()
Link copied to clipboard
abstract fun setAdditionalOptionForPackager(name: String, value: String)

Add an option to send to packager when requesting JS bundle.

Link copied to clipboard
abstract fun setFpsDebugEnabled(isFpsDebugEnabled: Boolean)
Link copied to clipboard
abstract fun setHotModuleReplacementEnabled(isHotModuleReplacementEnabled: Boolean)
Link copied to clipboard
Link copied to clipboard
abstract fun showDevOptionsDialog()
Link copied to clipboard
abstract fun showNewJavaError(message: String?, e: Throwable)
Link copied to clipboard
abstract fun showNewJSError(message: String?, details: ReadableArray?, errorCookie: Int)
Link copied to clipboard

Shows the "paused in debugger" overlay with the given message.

Link copied to clipboard
abstract fun startInspector()
Link copied to clipboard
abstract fun stopInspector()
Link copied to clipboard
abstract fun toggleElementInspector()