public class DebugComponentOwnershipModule extends ReactContextBaseJavaModule
| Modifier and Type | Class and Description |
|---|---|
static interface |
DebugComponentOwnershipModule.OwnerHierarchyCallback
Callback for when we receive the ownership hierarchy in native code.
|
static interface |
DebugComponentOwnershipModule.RCTDebugComponentOwnership |
BaseJavaModule.JavaMethodNativeModule.NativeMethodMETHOD_TYPE_ASYNC, METHOD_TYPE_PROMISE, METHOD_TYPE_SYNC| Constructor and Description |
|---|
DebugComponentOwnershipModule(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 |
loadComponentOwnerHierarchy(int tag,
DebugComponentOwnershipModule.OwnerHierarchyCallback callback)
Request to receive the component hierarchy for a particular tag.
|
void |
onCatalystInstanceDestroy()
Called before {CatalystInstance#onHostDestroy}
|
void |
receiveOwnershipHierarchy(int requestId,
int tag,
ReadableArray owners) |
getCurrentActivity, getReactApplicationContextcanOverrideExistingModule, getConstants, getMethods, supportsWebWorkerspublic DebugComponentOwnershipModule(ReactApplicationContext reactContext)
public void initialize()
NativeModuleCatalystApplicationFragment#createCatalystInstance()
after the CatalystInstance has been created, in order to initialize NativeModules that require
the CatalystInstance or JS modules.initialize in interface NativeModuleinitialize in class BaseJavaModulepublic void onCatalystInstanceDestroy()
NativeModuleonCatalystInstanceDestroy in interface NativeModuleonCatalystInstanceDestroy in class BaseJavaModulepublic void receiveOwnershipHierarchy(int requestId,
int tag,
@Nullable
ReadableArray owners)
public void loadComponentOwnerHierarchy(int tag,
DebugComponentOwnershipModule.OwnerHierarchyCallback callback)
public java.lang.String getName()
require() this module
from javascript.