public class CxxModuleWrapperBase extends java.lang.Object implements NativeModule
This module implements the NativeModule interface but will never be invoked from Java, instead the underlying Cxx module will be extracted by the bridge and called directly.
NativeModule.NativeMethod| Modifier | Constructor and Description |
|---|---|
protected |
CxxModuleWrapperBase(HybridData hd) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
canOverrideExistingModule()
Return true if you intend to override some other native module that was registered e.g.
|
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}
|
protected void |
resetModule(HybridData hd) |
protected CxxModuleWrapperBase(HybridData hd)
public java.lang.String getName()
getName in interface NativeModulerequire() this module
from javascript.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 NativeModulepublic boolean canOverrideExistingModule()
NativeModulecanOverrideExistingModule in interface NativeModulepublic void onCatalystInstanceDestroy()
NativeModuleonCatalystInstanceDestroy in interface NativeModuleprotected void resetModule(HybridData hd)