DevSupportManagerBase

Constructors

Link copied to clipboard
constructor(applicationContext: Context, reactInstanceDevHelper: ReactInstanceDevHelper, @Nullable packagerPathForJSBundleName: String, enableOnCreate: Boolean, @Nullable redBoxHandler: RedBoxHandler, @Nullable devBundleDownloadListener: DevBundleDownloadListener, minNumShakes: Int, @Nullable customPackagerCommandHandlers: Map<String, RequestHandler>, @Nullable surfaceDelegateFactory: SurfaceDelegateFactory, @Nullable devLoadingViewManager: DevLoadingViewManager, @Nullable pausedInDebuggerOverlayManager: PausedInDebuggerOverlayManager)

Types

Link copied to clipboard

Functions

Link copied to clipboard
open fun addCustomDevOption(optionName: String, optionHandler: DevOptionHandler)
Add option item to dev settings dialog displayed by this manager.
Link copied to clipboard
open fun createRootView(appKey: String): View
Link copied to clipboard
Create the surface delegate that the provided module should use to interact with
Link copied to clipboard
open fun destroyRootView(@Nullable rootView: View)
Link copied to clipboard
open fun downloadBundleResourceFromUrlSync(resourceURL: String, outputFile: File): File
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
open fun getSourceUrl(): String
Link copied to clipboard
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
open fun hideRedboxDialog()
Link copied to clipboard
Link copied to clipboard
abstract fun loadSplitBundleFromServer(bundlePath: String, callback: DevSplitBundleCallback)
Link copied to clipboard
open fun onNewReactContextCreated(reactContext: ReactContext)
Link copied to clipboard
open fun onReactInstanceDestroyed(reactContext: ReactContext)
Link copied to clipboard
open fun openDebugger()
Attempt to open the JS debugger on the host machine.
Link copied to clipboard
Link copied to clipboard
open fun registerErrorCustomizer(errorCustomizer: ErrorCustomizer)
Link copied to clipboard
open fun reloadJSFromServer(bundleURL: String, callback: BundleLoadCallback)
Link copied to clipboard
open fun reloadSettings()
Link copied to clipboard
Add an option to send to packager when requesting JS bundle.
Link copied to clipboard
open fun setDevSupportEnabled(isDevSupportEnabled: Boolean)
com.facebook.react.ReactInstanceManager is responsible for enabling/disabling dev support when a React view is attached/detached or when application state changes (e.g.
Link copied to clipboard
open fun setFpsDebugEnabled(isFpsDebugEnabled: Boolean)
Link copied to clipboard
open fun setHotModuleReplacementEnabled(isHotModuleReplacementEnabled: Boolean)
Link copied to clipboard
Link copied to clipboard
open fun showNewJavaError(@Nullable message: String, e: Throwable)
Link copied to clipboard
open fun showNewJSError(@Nullable message: String, @Nullable details: ReadableArray, errorCookie: Int)
Link copied to clipboard
Shows the "paused in debugger" overlay with the given message.
Link copied to clipboard
open fun startInspector()
Link copied to clipboard
open fun stopInspector()
Link copied to clipboard