-
- All Implemented Interfaces:
-
com.facebook.react.bridge.NativeModule
public class CxxModuleWrapperBase implements NativeModule
A Java Object which represents a cross-platform C++ module
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.
-
-
Method Summary
Modifier and Type Method Description native String
getName()
void
initialize()
This is called at the end of createCatalystInstance afterthe CatalystInstance has been created, in order to initialize NativeModules that require theCatalystInstance or JS modules. boolean
canOverrideExistingModule()
Return true if you intend to override some other native module that was registered e.g. void
onCatalystInstanceDestroy()
Allow NativeModule to clean up. void
invalidate()
Allow NativeModule to clean up. -
-
Method Detail
-
initialize
void initialize()
This is called at the end of createCatalystInstance afterthe CatalystInstance has been created, in order to initialize NativeModules that require theCatalystInstance or JS modules.
-
canOverrideExistingModule
boolean canOverrideExistingModule()
Return true if you intend to override some other native module that was registered e.g. as partof a different package (such as the core one). Trying to override without returning true fromthis method is considered an error and will throw an exception during initialization. Bydefault all modules return false.
-
onCatalystInstanceDestroy
void onCatalystInstanceDestroy()
Allow NativeModule to clean up. Called before {CatalystInstance#onHostDestroy}
-
invalidate
void invalidate()
Allow NativeModule to clean up. Called before {CatalystInstance#onHostDestroy}
-
-
-
-