I am passing in the interface object, BUT there are SO MANY scenarios where you never call any of those methods back.
WHY WHY WHY are you asking the API user to pass in an IterableEmbeddedUpdateHandler
if you never call them back.
PLEASE make this callback no matter what,
class Update : IterableEmbeddedUpdateHandler {
override fun onEmbeddedMessagingDisabled() {
println("calling onEmbeddedMessagingDisabled()")
callback()
}
override fun onMessagesUpdated() {
println("calling onMessagesUpdated()")
callback()
}
}
embeddedManager?.addUpdateListener(Update())
I am passing in the interface object, BUT there are SO MANY scenarios where you never call any of those methods back.
WHY WHY WHY are you asking the API user to pass in an IterableEmbeddedUpdateHandler
if you never call them back.
PLEASE make this callback no matter what,
class Update : IterableEmbeddedUpdateHandler {
override fun onEmbeddedMessagingDisabled() {
println("calling onEmbeddedMessagingDisabled()")
callback()
}
embeddedManager?.addUpdateListener(Update())