createGlobalComponentManager
fun createGlobalComponentManager( lifecycleOwner: LifecycleOwner, applicationContext: Context, additionalComponents: (GlobalComponent) -> List<ComponentInternalApi> = {
val serviceProvider = applicationContext.iviApplication.getServiceProvider()
listOf(
IviSystemSettingsPlatformComponent(
SystemSettingsService.createApiOrNull(lifecycleOwner, serviceProvider)
),
IviAnalyticsPlatformComponent(
AnalyticsSettingsService.createApi(
lifecycleOwner,
serviceProvider
)
),
IviVehiclePlatformComponent(
VehicleSpecificationService.createApi(lifecycleOwner, serviceProvider),
VehicleElectricEngineService.createApiOrNull(lifecycleOwner, serviceProvider)
),
DaggerSearchShortcutsPlatformComponentGraph.factory()
.create(applicationContext, it.componentProviderApi())
.searchShortcutsPlatformComponentApi() as ComponentInternalApi
)
}): GlobalComponentManager
Content copied to clipboard
Creates an instance of the GlobalComponentManager.