Koin how to inject outside of Android activity / appcompatactivity : <p><strong><a href="https://github.com/Ekito/koin" rel="noreferrer">Koin</a></strong> is a new, lightweight library for DI and can be used in Android as well as in standalone kotlin apps.</p>

<p>Usually you inject dependencies like this:</p>

<pre><code>class SplashScreenActivity : Activity() {

    val sampleClass : SampleClass by inject()

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)
    }
}
</code></pre>

<p>with the <code>inject()</code> method.</p>

<p>But what about injecting stuff in places where Activity context is not available i.e. <strong>outside of an Activity</strong>?</p>
