https://kotlinlang.org logo
d

diego-gomez-olvera

02/27/2018, 4:56 PM
playing with Kotlin for a demo, I ended up with some kind of hacky adaptation:
Copy code
class OnScrollPager(
        private val before: () -> Unit,
        private val after: () -> Unit) : RecyclerView.OnScrollListener() {

    constructor(before: Action0, after: Action0) : this(before::call, after::call)