Last active
September 27, 2018 08:42
-
-
Save nhaarman/06a4fca182175c14fc7f2860ad3b966a to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
class SelectPictureScreen( | |
private val listener: Events | |
) : Screen<SelectPictureContainer> { | |
override fun attach(c: SelectPictureContainer) { | |
c.setOnPictureClickListener { listener.onPictureSelected(it.id) } | |
} | |
interface Events { | |
fun onPictureSelected(id: Long) | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment