Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

embeddedManager?.addUpdateListener(Update()) #739

Open
wlynnlt opened this issue May 21, 2024 · 0 comments
Open

embeddedManager?.addUpdateListener(Update()) #739

wlynnlt opened this issue May 21, 2024 · 0 comments

Comments

@wlynnlt
Copy link

wlynnlt commented May 21, 2024

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())

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant