public class TurboModuleManager extends java.lang.Object implements JSIModule
Modifier and Type | Class and Description |
---|---|
static interface |
TurboModuleManager.ModuleProvider
All applications must implement this interface, and provide the Java TurboModule class
|
Constructor and Description |
---|
TurboModuleManager(ReactApplicationContext reactApplicationContext,
JavaScriptContextHolder jsContext,
TurboModuleManager.ModuleProvider moduleProvider) |
Modifier and Type | Method and Description |
---|---|
protected TurboModule |
getJavaModule(java.lang.String name) |
protected ReactApplicationContext |
getReactApplicationContext() |
protected HybridData |
initHybrid(long jsContext,
MessageQueueThread jsQueue) |
void |
initialize()
This is called at the end of
CatalystApplicationFragment#createCatalystInstance()
after the CatalystInstance has been created, in order to initialize NativeModules that require
the CatalystInstance or JS modules. |
void |
installBindings() |
protected void |
installJSIBindings() |
void |
onCatalystInstanceDestroy()
Called before {CatalystInstance#onHostDestroy}
|
public TurboModuleManager(ReactApplicationContext reactApplicationContext, JavaScriptContextHolder jsContext, TurboModuleManager.ModuleProvider moduleProvider)
protected TurboModule getJavaModule(java.lang.String name)
protected HybridData initHybrid(long jsContext, MessageQueueThread jsQueue)
protected void installJSIBindings()
public void installBindings()
protected ReactApplicationContext getReactApplicationContext()
public void initialize()
JSIModule
CatalystApplicationFragment#createCatalystInstance()
after the CatalystInstance has been created, in order to initialize NativeModules that require
the CatalystInstance or JS modules.initialize
in interface JSIModule
public void onCatalystInstanceDestroy()
JSIModule
onCatalystInstanceDestroy
in interface JSIModule