mirror of
https://github.com/commons-app/apps-android-commons.git
synced 2025-10-29 13:53:54 +01:00
* Fix Lint Issues #171: Remove unused imports Removed unused Java imports * Fix Lint Issues #171: Perfromance issue, close cursor Cursor was not closed when no longer needed
16 lines
404 B
Java
16 lines
404 B
Java
package fr.free.nrw.commons;
|
|
|
|
/**
|
|
* Base presenter, enforcing contracts to atach and detach view
|
|
*/
|
|
public interface BasePresenter {
|
|
/**
|
|
* Until a view is attached, it is open to listen events from the presenter
|
|
*/
|
|
void onAttachView(MvpView view);
|
|
|
|
/**
|
|
* Detaching a view makes sure that the view no more receives events from the presenter
|
|
*/
|
|
void onDetachView();
|
|
}
|