Skip to content

Instantly share code, notes, and snippets.

@theerasan
Created July 10, 2017 19:22
Show Gist options
  • Select an option

  • Save theerasan/364208e35a38702aa829d236e69ae6f5 to your computer and use it in GitHub Desktop.

Select an option

Save theerasan/364208e35a38702aa829d236e69ae6f5 to your computer and use it in GitHub Desktop.
class LoginWithBindingPresenter(var viewModel: LoginDataBindingViewModel?,
var view: LoginWithBindingInf.ViewInf)
: LoginWithBindingInf.PresenterInf {
override fun onInit() {
viewModel?.onClickLogin = View.OnClickListener { _ ->
view.performLogin(viewModel?.email + " " + viewModel?.password)
viewModel?.email = ""
viewModel?.password = ""
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment