Package 

Interface TurboModuleRegistry


  • 
    public interface TurboModuleRegistry
    
                        

    Interface to allow for creating and retrieving TurboModules.

    • Method Summary

      Modifier and Type Method Description
      abstract TurboModule getModule(String moduleName) Return the TurboModule instance that has that name `moduleName`.
      abstract Collection<TurboModule> getModules() Get all instantiated TurboModules.
      abstract boolean hasModule(String moduleName) Has the TurboModule with name `moduleName` been instantiated?
      abstract List<String> getEagerInitModuleNames() Return the names of all the NativeModules that are supposed to be eagerly initialized.
      • Methods inherited from class java.lang.Object

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

      • getModule

        @Nullable() abstract TurboModule getModule(String moduleName)

        Return the TurboModule instance that has that name `moduleName`. If the `moduleName`TurboModule hasn't been instantiated, instantiate it. If no TurboModule is registered under`moduleName`, return null.

      • hasModule

         abstract boolean hasModule(String moduleName)

        Has the TurboModule with name `moduleName` been instantiated?

      • getEagerInitModuleNames

         abstract List<String> getEagerInitModuleNames()

        Return the names of all the NativeModules that are supposed to be eagerly initialized. Bycalling getModule on each name, this allows the application to eagerly initialize itsNativeModules.