March 2018
Intermediate to advanced
500 pages
12h 40m
English
As always, the first thing we must do is create a presenter interface that defines functions to be implemented by a presenter implementation class. The following is the MainPresenter interface:
package com.example.messenger.ui.maininterface MainPresenter { fun loadConversations() fun loadContacts() fun executeLogout()}
The loadConversations(), loadContacts(), and executeLogout() functions will be invoked by the MainView and must be implemented by the MainPresenterImpl class. Our MainPresenterImpl class with its defined properties, and onConversationsLoadSuccess() and onConversationsLoadError() methods is given as follows:
package com.iyanuadelekan.messenger.ui.mainimport com.iyanuadelekan.messenger.data.vo.ConversationListVO ...
Read now
Unlock full access