public class JSDevSupport extends NativeJSDevSupportSpec
| Modifier and Type | Class and Description |
|---|---|
static interface |
JSDevSupport.DevSupportCallback |
static interface |
JSDevSupport.JSDevSupportModule |
NativeModule.NativeMethod| Modifier and Type | Field and Description |
|---|---|
static int |
ERROR_CODE_EXCEPTION |
static int |
ERROR_CODE_VIEW_NOT_FOUND |
static java.lang.String |
MODULE_NAME |
METHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
JSDevSupport(ReactApplicationContext reactContext) |
| Modifier and Type | Method and Description |
|---|---|
void |
computeDeepestJSHierarchy(android.view.View root,
JSDevSupport.DevSupportCallback callback)
Notifies the callback with either the JS hierarchy of the deepest leaf from the given root view
or with an error.
|
void |
getJSHierarchy(int reactTag,
JSDevSupport.DevSupportCallback callback) |
java.lang.String |
getName() |
java.util.Map<java.lang.String,java.lang.Object> |
getTypedExportedConstants() |
void |
onFailure(double errorCodeDouble,
java.lang.String error) |
void |
onSuccess(java.lang.String data) |
getConstantsgetCurrentActivity, getReactApplicationContext, getReactApplicationContextIfActiveOrWarncanOverrideExistingModule, hasConstants, initialize, invalidate, onCatalystInstanceDestroyclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitinvalidatepublic static final java.lang.String MODULE_NAME
public static final int ERROR_CODE_EXCEPTION
public static final int ERROR_CODE_VIEW_NOT_FOUND
public JSDevSupport(ReactApplicationContext reactContext)
public void computeDeepestJSHierarchy(android.view.View root,
JSDevSupport.DevSupportCallback callback)
public void getJSHierarchy(int reactTag,
JSDevSupport.DevSupportCallback callback)
public void onSuccess(java.lang.String data)
onSuccess in class NativeJSDevSupportSpecpublic void onFailure(double errorCodeDouble,
java.lang.String error)
onFailure in class NativeJSDevSupportSpecpublic java.util.Map<java.lang.String,java.lang.Object> getTypedExportedConstants()
getTypedExportedConstants in class NativeJSDevSupportSpecpublic java.lang.String getName()
require() this module
from javascript.