startKoin

open override fun startKoin(koinApplication: KoinApplication): KoinApplication

Starts using the provided KoinApplication as the current one for this context.

Parameters

koinApplication

The application to start with.

Throws

KoinApplicationAlreadyStartedException

The KoinApplication has already been instantiated.


open override fun startKoin(appDeclaration: KoinAppDeclaration): KoinApplication

Starts using the provided KoinAppDeclaration to create the KoinApplication for this context.

Parameters

appDeclaration

The application declaration to start with.

Throws

KoinApplicationAlreadyStartedException

The KoinApplication has already been instantiated.