Skip to content

Instantly share code, notes, and snippets.

@nhaarman
Last active September 27, 2018 08:42
Show Gist options
  • Save nhaarman/06a4fca182175c14fc7f2860ad3b966a to your computer and use it in GitHub Desktop.
Save nhaarman/06a4fca182175c14fc7f2860ad3b966a to your computer and use it in GitHub Desktop.
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