title: Singleton with argument in Kotlin
body: <p>The <a href="https://kotlinlang.org/docs/reference/object-declarations.html">Kotlin reference</a> says that I can create a singleton using the <em>object</em> keyword like so:</p>
  
  <pre><code>object DataProviderManager {
    fun registerDataProvider(provider: DataProvider) {
      //
    }
  }
  </code></pre>
  
  <p>However, I would like to pass an argument to that object. For example an ApplicationContext in an Android project.</p>
  
  <p>Is there a way to do this?</p>