EngineContext constructor
EngineContext(
- List<
APIProvider> ? apiProviders, - VoltronBundleLoader? coreLoader,
- int bridgeType,
- bool isDevModule,
- IntegratedMode integratedMode,
- String serverHost,
- int groupId,
- VoltronThirdPartyAdapter? thirdPartyAdapter,
- GlobalConfigs globalConfigs,
- int id,
- TimeMonitor monitor,
- EngineMonitor engineMonitor,
- DevSupportManager devSupportManager,
- VoltronRenderBridgeManager? voltronRenderBridgeManager,
- DomHolder? domHolder,
- HashMap<
int, RootWidgetViewModel> ? rootViewModelMap,
Implementation
EngineContext(
List<APIProvider>? apiProviders,
VoltronBundleLoader? coreLoader,
int bridgeType,
bool isDevModule,
IntegratedMode integratedMode,
String serverHost,
int groupId,
VoltronThirdPartyAdapter? thirdPartyAdapter,
GlobalConfigs globalConfigs,
int id,
TimeMonitor monitor,
EngineMonitor engineMonitor,
DevSupportManager devSupportManager,
VoltronRenderBridgeManager? voltronRenderBridgeManager,
DomHolder? domHolder,
HashMap<int, RootWidgetViewModel>? rootViewModelMap,
) : _globalConfigs = globalConfigs,
_id = id,
_isDevMode = isDevModule,
_debugServerHost = serverHost,
_startTimeMonitor = monitor {
_renderContext = JSRenderContext(
this,
_id,
processControllers(apiProviders),
engineMonitor,
isDevModule,
voltronRenderBridgeManager,
domHolder,
rootViewModelMap,
);
if (_isDevMode) {
_devtoolsManager = DevtoolsManager(true);
}
_moduleManager = ModuleManager(this, apiProviders);
_dimensionChecker = JSDimensionChecker(globalConfigs.deviceAdapter, _moduleManager);
_bridgeManager = VoltronBridgeManager(
this,
coreLoader,
groupId,
_id,
thirdPartyAdapter: thirdPartyAdapter,
bridgeType: bridgeType,
isDevModule: _isDevMode,
debugServerHost: _debugServerHost,
);
_initVfsManager();
_devSupportManager = devSupportManager;
}