public class ModuleHolder
extends java.lang.Object
This works by taking a provider instead of an instance, when it is first required we'll create and initialize it. Initialization currently always happens on the UI thread but this is due to change for performance reasons.
Lifecycle events via a LifecycleEventListener
will still always happen on the UI
thread.
Constructor and Description |
---|
ModuleHolder(NativeModule nativeModule) |
ModuleHolder(ReactModuleInfo moduleInfo,
<any> provider) |
Modifier and Type | Method and Description |
---|---|
void |
destroy() |
boolean |
getCanOverrideExistingModule() |
java.lang.String |
getClassName() |
boolean |
getHasConstants() |
NativeModule |
getModule() |
java.lang.String |
getName() |
boolean |
isCxxModule() |
boolean |
isTurboModule() |
public ModuleHolder(ReactModuleInfo moduleInfo, <any> provider)
public ModuleHolder(NativeModule nativeModule)
public void destroy()
public java.lang.String getName()
public boolean getCanOverrideExistingModule()
public boolean getHasConstants()
public boolean isTurboModule()
public boolean isCxxModule()
public java.lang.String getClassName()
public NativeModule getModule()