Class RefreshablePresenter<V extends RefreshableView>

    • Constructor Detail

      • RefreshablePresenter

        public RefreshablePresenter()
    • Method Detail

      • refreshData

        public void refreshData()
        Start the refresh view data.
      • isRefreshing

        public boolean isRefreshing()
        Set if current instance is refreshing
        Returns:
        true if current state is refreshing, else false
      • onRefreshFailed

        public void onRefreshFailed​(java.lang.String error)
        End of refresh with failed attempt
        Parameters:
        error - short description on reason of failure
      • onRefreshSuccess

        public void onRefreshSuccess​(BaseData data)
        End of refresh with success request.
        Parameters:
        data - the BaseData.