Skip to content

Instantly share code, notes, and snippets.

@BuiVanNam
Created December 2, 2020 16:10
Show Gist options
  • Save BuiVanNam/8c4494a089feeb1411fc03681823fca6 to your computer and use it in GitHub Desktop.
Save BuiVanNam/8c4494a089feeb1411fc03681823fca6 to your computer and use it in GitHub Desktop.
//Set mEventItemBook
private val mBookAdapter: BookAdapter by lazy {
BookAdapter().apply {
mEventItemBook = { handleEventItemListBook(it) }
}
}
//handleEvent
private fun handleEventItemListBook(eventItemBook: EventItemBook) {
Log.d("TODO", "event: $eventItemBook")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment