if you still want to keep the interface, just put ...
# announcements
l
if you still want to keep the interface, just put a default inside the interface. like this
Copy code
interface BootstrapListener {
    fun onBootstrapComplete()
    
    object DoNothing : BootstrapListener {
        override fun onBootstrapComplete() {}
    }
}

class PlayoutSocketClient(..., private val bootstrapListener: BootstrapListener = BootstrapListener.DoNothing)
k
You could instead, just do this:
Copy code
interface BootstrapListener {

  fun onBootstrapComplete() = Unit
  fun someOtherMethod() = Unit
}