Semih Bozdemir
Jul 21, 2017 · 1 min read

I think consuming api is nicer as Kaushik Gopal says. The result is not the same.

animation.setAnimationListener {
onAnimationEnd {
// do something
}
}

vs

animation.setAnimationListener(object: AnimationListener by EmptyAnimationListener {    override fun onAnimationEnd(animation: Animation) {    }})

Optional callback class may also be generated with a plugin in Android Studio. (If someone try to write a plugin for it. :-) ) So, the time of hacking part can be reduced.

)
    Semih Bozdemir

    Written by

    Kotlin Enthusiast & Android Developer

    Welcome to a place where words matter. On Medium, smart voices and original ideas take center stage - with no ads in sight. Watch
    Follow all the topics you care about, and we’ll deliver the best stories for you to your homepage and inbox. Explore
    Get unlimited access to the best stories on Medium — and support writers while you’re at it. Just $5/month. Upgrade