Last active
July 11, 2019 08:01
-
-
Save tmaxxdd/c2455bcfe4694ba7fcb575fd2f80b46a to your computer and use it in GitHub Desktop.
This file contains 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
private lateinit var presenter: TopicsPresenter | |
... | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
presenter = TopicsPresenter(dataRepository) | |
} | |
... | |
override fun onResume() { | |
super.onResume() | |
//Notice presenter that view can be accessible | |
presenter.onViewActive(this) | |
} | |
override fun onPause() { | |
//Notice presenter that view cannot be accessible | |
presenter.onViewInactive() | |
super.onPause() | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment