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) |
getConstants
getCurrentActivity, getReactApplicationContext, getReactApplicationContextIfActiveOrWarn
canOverrideExistingModule, hasConstants, initialize, invalidate, onCatalystInstanceDestroy
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
invalidate
public 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 NativeJSDevSupportSpec
public void onFailure(double errorCodeDouble, java.lang.String error)
onFailure
in class NativeJSDevSupportSpec
public java.util.Map<java.lang.String,java.lang.Object> getTypedExportedConstants()
getTypedExportedConstants
in class NativeJSDevSupportSpec
public java.lang.String getName()
require()
this module
from javascript.