This explains better what i am trying to achieve
Say in my onStart function i call a function to get some content as soon as the activity has started..
override fun onStart() {
super.onStart()
contentSelectionPresenter.getAvailableContent()
}
And in the presenter i want to do this..
override fun getAvailableContent() : List<ContentItem> {
contentSelectionView.showProgress() // Needs to run on Main thread
val availableContent = contentSelectionInteractor.getAvailableContent() // needs to run on worker thread
contentSelectionView.hideProgress() // Needs to run on Main thread
return availableContent
}
l
louiscad
05/18/2019, 8:08 PM
Please, consider formatting code with triple backticks
Copy code
like(this)
next time.
That helps people helping you read the code snippets you post.