Skip to content

Instantly share code, notes, and snippets.

@wellingtoncosta
Last active January 16, 2019 18:58
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save wellingtoncosta/6f0fe9c9ad86f4f7c5a52e6b2aa5d454 to your computer and use it in GitHub Desktop.
Save wellingtoncosta/6f0fe9c9ad86f4f7c5a52e6b2aa5d454 to your computer and use it in GitHub Desktop.
class AwesomeActivity : Activity(), CallbackListener {
override fun onCreate(savedInstanceState: Bundle?) {
super.onCreate(savedInstance)
setContentView(R.layout.awesome_activity)
}
override fun onCallback() {
Toast.makeText(context, "onCallback called!", Toast.LENGTH_LONG).show()
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment