``` fun getConnectionManager(context: Context): Co...
# getting-started
r
Copy code
fun getConnectionManager(context: Context): ConnectionManager  =
        conMan ?: ConnectionManagerImpl(context).apply {
            conMan = this
        }

private var conMan: ConnectionManager? = null

private class ConnectionManagerImpl constructor(val context: Context) : ConnectionManager {
   ...
}