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) |
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)