Package 

Class FallbackJSBundleLoader


  • 
    public final class FallbackJSBundleLoader
    extends JSBundleLoader
                        

    FallbackJSBundleLoader

    An implementation of JSBundleLoader that will try to load from multiple sources, falling back from one source to the next at load time when an exception is thrown for a recoverable error.

    • Method Summary

      Modifier and Type Method Description
      String loadScript(JSBundleLoaderDelegate delegate) This loader delegates to (and so behaves like) the currently preferred loader.
      • Methods inherited from class com.facebook.react.bridge.JSBundleLoader

        createAssetLoader, createCachedBundleFromNetworkLoader, createCachedSplitBundleFromNetworkLoader, createFileLoader, createFileLoader, createRemoteDebuggerBundleLoader
      • Methods inherited from class java.lang.Object

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

      • FallbackJSBundleLoader

        FallbackJSBundleLoader(List<JSBundleLoader> loaders)
        Parameters:
        loaders - Loaders for the sources to try, in descending order of preference.
    • Method Detail

      • loadScript

         String loadScript(JSBundleLoaderDelegate delegate)

        This loader delegates to (and so behaves like) the currently preferred loader. If that loaderfails in a recoverable way and we fall back from it, it is replaced by the next most preferredloader.