meaning from the same reference for View that I pa...
# android
o
meaning from the same reference for View that I pass to the presenter, a showDialog method would be also available
l
You can make an abstract class BaseActivity and implement the
fun showProgress()
and
fun hideProgress()
there, so every activity which extends from the Base will have those methods available
and in your presenter you can do
(mView as BaseActivity).showProgress()
o
yea that’s what I had in Java
I was wondering if Kotlin just provided a magical way of sorts! đŸ˜›