public interface CatalystInstance extends MemoryPressureListener
Modifier and Type | Method and Description |
---|---|
void |
addBridgeIdleDebugListener(NotThreadSafeBridgeIdleDebugListener listener)
Adds a idle listener for this Catalyst instance.
|
void |
callFunction(ExecutorToken executorToken,
java.lang.String module,
java.lang.String method,
NativeArray arguments) |
void |
destroy()
Destroys this catalyst instance, waiting for any other threads in ReactQueueConfiguration
(besides the UI thread) to finish running.
|
<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() |
<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() |
handleMemoryPressure
void runJSBundle()
void invokeCallback(ExecutorToken executorToken, int callbackID, NativeArray arguments)
void callFunction(ExecutorToken executorToken, java.lang.String module, java.lang.String method, NativeArray arguments)
void destroy()
boolean isDestroyed()
void initialize()
ReactQueueConfiguration getReactQueueConfiguration()
<T extends JavaScriptModule> T getJSModule(java.lang.Class<T> jsInterface)
<T extends JavaScriptModule> T getJSModule(ExecutorToken executorToken, java.lang.Class<T> jsInterface)
<T extends NativeModule> boolean hasNativeModule(java.lang.Class<T> nativeModuleInterface)
<T extends NativeModule> T getNativeModule(java.lang.Class<T> nativeModuleInterface)
java.util.Collection<NativeModule> getNativeModules()
void addBridgeIdleDebugListener(NotThreadSafeBridgeIdleDebugListener listener)
void removeBridgeIdleDebugListener(NotThreadSafeBridgeIdleDebugListener listener)
addBridgeIdleDebugListener(com.facebook.react.bridge.NotThreadSafeBridgeIdleDebugListener)
boolean supportsProfiling()
void startProfiler(java.lang.String title)
void stopProfiler(java.lang.String title, java.lang.String filename)
void setGlobalVariable(java.lang.String propName, java.lang.String jsonValue)