public class CxxModuleWrapperBase extends java.lang.Object implements NativeModule
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 NativeModule
require()
this module
from javascript.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
public boolean canOverrideExistingModule()
NativeModule
canOverrideExistingModule
in interface NativeModule
public void onCatalystInstanceDestroy()
NativeModule
onCatalystInstanceDestroy
in interface NativeModule
protected void resetModule(HybridData hd)