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.JavaMethod, BaseJavaModule.SyncJavaHook
NativeModule.NativeMethod, NativeModule.SyncNativeHook
METHOD_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, getReactApplicationContext
canOverrideExistingModule, getConstants, getMethods, getSyncHooks, onReactBridgeInitialized, supportsWebWorkers, writeConstantsField
public DebugComponentOwnershipModule(ReactApplicationContext reactContext)
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
public 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.