Joey
01/17/2020, 4:35 AMTim Malseed
01/17/2020, 4:38 AMJoey
01/17/2020, 4:38 AMJoey
01/17/2020, 4:40 AMTim Malseed
01/17/2020, 5:03 AMTim Malseed
01/17/2020, 5:04 AMTim Malseed
01/17/2020, 5:04 AMJoey
01/17/2020, 5:28 AMinterface IHomeView {
fun onServiceStart()
fun onServiceStop()
}
class HomePresenterImpl(internal var iHomeView: IHomeView):
IHomePresenter {
override fun serviceStart() {
iHomeView.onServiceStart()
}
and in my activity
override fun onServiceStart() {
ForegroundHeartbeatService.startService(context!!, Constants.FOREGROUND_SERVICE_MESSAGE)
}
Joey
01/17/2020, 5:29 AMTim Malseed
01/17/2020, 6:29 AMService
, ha, sorry I thought you were referring to an Api Service of some kindTim Malseed
01/17/2020, 6:30 AMTim Malseed
01/17/2020, 6:33 AMstartService()
rather than onServiceStart()
. onServiceStart()
implies the service was started and this is a callback. startService()
sounds more like an action.Joey
01/17/2020, 6:39 AM