HumaModulesManager
The HumaModulesManager
is a class that provides a single point of access to the HumaModule
features in the Huma SDK. It is responsible for managing modules and their lifecycle within the
application.
Getting an Instance
An instance of HumaModulesManager
can be retrieved using the getInstance
method.
HumaModulesManager.getInstance()
Methods
installModules
This method is used to install the provided modules.
fun installModules(humaModuleLibraries: List<HumaModuleLibrary>)
registerImportProcessor
This method is used to register one or more import processors.
override fun registerImportProcessor(vararg processor: ImportModuleProcessor)
refreshData
This is a suspending function to refresh the data. It should be called from a coroutine or another suspending function.
override suspend fun refreshData(vararg moduleId: String?, from: Instant?)
registerSectionOverride
This method is used to register one or more section overrides.
override fun registerSectionOverride(vararg sectionOverride: SectionOverride)
registerModuleInputOverride
This method is used to register one or more module input overrides.
override fun registerModuleInputOverride(vararg moduleInputOverride: ModuleInputOverride)