Package 

Interface JSBundleLoaderDelegate

    • Method Summary

      Modifier and Type Method Description
      abstract void loadScriptFromAssets(AssetManager assetManager, String assetURL, boolean loadSynchronously) Load a JS bundle from Android assets.
      abstract void loadScriptFromFile(String fileName, String sourceURL, boolean loadSynchronously) Load a JS bundle from the filesystem.
      abstract void loadSplitBundleFromFile(String fileName, String sourceURL) Load a split JS bundle from the filesystem.
      abstract void setSourceURLs(String deviceURL, String remoteURL) This API is used in situations where the JS bundle is being executed not on the device, but ona host machine.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Method Detail

      • setSourceURLs

         abstract void setSourceURLs(String deviceURL, String remoteURL)

        This API is used in situations where the JS bundle is being executed not on the device, but ona host machine. In that case, we must provide two source URLs for the JS bundle: One to be usedon the device, and one to be used on the remote debugging machine.

        Parameters:
        deviceURL - A source URL that is accessible from this device.
        remoteURL - A source URL that is accessible from the remote machine executing the JS.