All Downloads are FREE. Search and download functionalities are using the official Maven repository.

nucleus.view.ViewWithPresenter Maven / Gradle / Ivy

Go to download

Nucleus is an Android library, which helps to use the Model-View-Presenter pattern

There is a newer version: 6.0.0
Show newest version
package nucleus.view;

import nucleus.factory.PresenterFactory;
import nucleus.factory.ReflectionPresenterFactory;
import nucleus.presenter.Presenter;

public interface ViewWithPresenter

{ /** * Returns a current presenter factory. */ PresenterFactory

getPresenterFactory(); /** * Sets a presenter factory. * Call this method before onCreate/onFinishInflate to override default {@link ReflectionPresenterFactory} presenter factory. * Use this method for presenter dependency injection. */ void setPresenterFactory(PresenterFactory

presenterFactory); /** * Returns a current attached presenter. * This method is guaranteed to return a non-null value between * onResume/onPause and onAttachedToWindow/onDetachedFromWindow calls * if the presenter factory returns a non-null value. * * @return a currently attached presenter or null. */ P getPresenter(); }





© 2015 - 2024 Weber Informatics LLC | Privacy Policy