JSBundleLoaderDelegate

An interface for classes that initialize JavaScript using JSBundleLoader

Inheritors

Functions

Link copied to clipboard
abstract fun loadScriptFromAssets(assetManager: AssetManager, assetURL: String, loadSynchronously: Boolean)

Load a JS bundle from Android assets. See JSBundleLoader.createAssetLoader

Link copied to clipboard
abstract fun loadScriptFromFile(fileName: String, sourceURL: String, loadSynchronously: Boolean)

Load a JS bundle from the filesystem. See JSBundleLoader.createFileLoader and JSBundleLoader.createCachedBundleFromNetworkLoader

Link copied to clipboard
abstract fun loadSplitBundleFromFile(fileName: String, sourceURL: String)

Load a split JS bundle from the filesystem. See JSBundleLoader.createCachedSplitBundleFromNetworkLoader.

Link copied to clipboard
abstract fun setSourceURLs(deviceURL: String, remoteURL: String)

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