public class CatalystInstanceImpl extends java.lang.Object implements CatalystInstance
| Modifier and Type | Class and Description |
|---|---|
static class |
CatalystInstanceImpl.Builder |
| Modifier and Type | Method and Description |
|---|---|
void |
addBridgeIdleDebugListener(NotThreadSafeBridgeIdleDebugListener listener)
Adds a idle listener for this Catalyst instance.
|
void |
callFunction(ExecutorToken executorToken,
int moduleId,
int methodId,
NativeArray arguments,
java.lang.String tracingName) |
void |
destroy()
Destroys this catalyst instance, waiting for any other threads in ReactQueueConfiguration
(besides the UI thread) to finish running.
|
protected void |
finalize() |
<T extends JavaScriptModule> |
getJSModule(java.lang.Class<T> jsInterface) |
<T extends JavaScriptModule> |
getJSModule(ExecutorToken executorToken,
java.lang.Class<T> jsInterface) |
<T extends NativeModule> |
getNativeModule(java.lang.Class<T> nativeModuleInterface) |
java.util.Collection<NativeModule> |
getNativeModules() |
ReactQueueConfiguration |
getReactQueueConfiguration() |
void |
handleMemoryPressure(MemoryPressure level)
Called when the system generates a memory warning.
|
<T extends NativeModule> |
hasNativeModule(java.lang.Class<T> nativeModuleInterface) |
void |
initialize()
Initialize all the native modules
|
void |
invokeCallback(ExecutorToken executorToken,
int callbackID,
NativeArray arguments) |
boolean |
isDestroyed() |
void |
removeBridgeIdleDebugListener(NotThreadSafeBridgeIdleDebugListener listener)
Removes a NotThreadSafeBridgeIdleDebugListener previously added with
addBridgeIdleDebugListener(com.facebook.react.bridge.NotThreadSafeBridgeIdleDebugListener) |
void |
runJSBundle() |
void |
setGlobalVariable(java.lang.String propName,
java.lang.String jsonValue) |
void |
startProfiler(java.lang.String title) |
void |
stopProfiler(java.lang.String title,
java.lang.String filename) |
boolean |
supportsProfiling() |
public void runJSBundle()
runJSBundle in interface CatalystInstancepublic void callFunction(ExecutorToken executorToken, int moduleId, int methodId, NativeArray arguments, java.lang.String tracingName)
callFunction in interface CatalystInstancepublic void invokeCallback(ExecutorToken executorToken, int callbackID, NativeArray arguments)
invokeCallback in interface CatalystInstancepublic void destroy()
destroy in interface CatalystInstancepublic boolean isDestroyed()
isDestroyed in interface CatalystInstancepublic void initialize()
initialize in interface CatalystInstancepublic ReactQueueConfiguration getReactQueueConfiguration()
getReactQueueConfiguration in interface CatalystInstancepublic <T extends JavaScriptModule> T getJSModule(java.lang.Class<T> jsInterface)
getJSModule in interface CatalystInstancepublic <T extends JavaScriptModule> T getJSModule(ExecutorToken executorToken, java.lang.Class<T> jsInterface)
getJSModule in interface CatalystInstancepublic <T extends NativeModule> boolean hasNativeModule(java.lang.Class<T> nativeModuleInterface)
hasNativeModule in interface CatalystInstancepublic <T extends NativeModule> T getNativeModule(java.lang.Class<T> nativeModuleInterface)
getNativeModule in interface CatalystInstancepublic java.util.Collection<NativeModule> getNativeModules()
getNativeModules in interface CatalystInstancepublic void handleMemoryPressure(MemoryPressure level)
MemoryPressureListenerhandleMemoryPressure in interface MemoryPressureListenerpublic void addBridgeIdleDebugListener(NotThreadSafeBridgeIdleDebugListener listener)
addBridgeIdleDebugListener in interface CatalystInstancepublic void removeBridgeIdleDebugListener(NotThreadSafeBridgeIdleDebugListener listener)
addBridgeIdleDebugListener(com.facebook.react.bridge.NotThreadSafeBridgeIdleDebugListener)removeBridgeIdleDebugListener in interface CatalystInstancepublic boolean supportsProfiling()
supportsProfiling in interface CatalystInstancepublic void startProfiler(java.lang.String title)
startProfiler in interface CatalystInstancepublic void stopProfiler(java.lang.String title,
java.lang.String filename)
stopProfiler in interface CatalystInstancepublic void setGlobalVariable(java.lang.String propName,
java.lang.String jsonValue)
setGlobalVariable in interface CatalystInstanceprotected void finalize()
throws java.lang.Throwable
finalize in class java.lang.Objectjava.lang.Throwable