-
public interface JSBundleLoaderDelegate
An interface for classes that initialize JavaScript using JSBundleLoader
-
-
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. -
-
Method Detail
-
loadScriptFromAssets
abstract void loadScriptFromAssets(AssetManager assetManager, String assetURL, boolean loadSynchronously)
Load a JS bundle from Android assets. See createAssetLoader
-
loadScriptFromFile
abstract void loadScriptFromFile(String fileName, String sourceURL, boolean loadSynchronously)
Load a JS bundle from the filesystem. See createFileLoader and createCachedBundleFromNetworkLoader
-
loadSplitBundleFromFile
abstract void loadSplitBundleFromFile(String fileName, String sourceURL)
-
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.
-
-
-
-