public class JSCSamplingProfiler extends ReactContextBaseJavaModule
Modifier and Type | Class and Description |
---|---|
static class |
JSCSamplingProfiler.ProfilerException |
static interface |
JSCSamplingProfiler.SamplingProfiler |
NativeModule.NativeMethod
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC
Constructor and Description |
---|
JSCSamplingProfiler(ReactApplicationContext reactContext) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getName() |
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 |
onCatalystInstanceDestroy()
Called before {CatalystInstance#onHostDestroy}
|
void |
operationComplete(int token,
java.lang.String result,
java.lang.String error) |
static java.util.List<java.lang.String> |
poke(long timeout) |
getCurrentActivity, getReactApplicationContext
canOverrideExistingModule, getConstants, hasConstants
public JSCSamplingProfiler(ReactApplicationContext reactContext)
public static java.util.List<java.lang.String> poke(long timeout) throws JSCSamplingProfiler.ProfilerException
public void operationComplete(int token, java.lang.String result, java.lang.String error)
public java.lang.String getName()
require()
this module
from javascript.public void initialize()
NativeModule
CatalystApplicationFragment#createCatalystInstance()
after the CatalystInstance has been created, in order to initialize NativeModules that require
the CatalystInstance or JS modules.initialize
in interface NativeModule
initialize
in class BaseJavaModule
public void onCatalystInstanceDestroy()
NativeModule
onCatalystInstanceDestroy
in interface NativeModule
onCatalystInstanceDestroy
in class BaseJavaModule