Like sendToView(v -> {}) the new sendToPresenter(p -> {}) is very useful for permissions and activity results. It can be used in callback methods with can be called before#onCreate(Bundle)
@Override
protected void onActivityResult(final int requestCode, final int resultCode,
final Intent data) {
super.onActivityResult(requestCode, resultCode, data);
sendToPresenter(presenter -> presenter.onResultReceived());
}
issues #30
I also created an interface PresenterAccessor bundling getPresenter() and sendToPresenter { }. Now all methods in Activities and Fragment implementations use @Override everywhere. And we don't miss something
Like
sendToView(v -> {})
the newsendToPresenter(p -> {})
is very useful for permissions and activity results. It can be used in callback methods with can be called before#onCreate(Bundle)
issues #30
I also created an interface
PresenterAccessor
bundlinggetPresenter()
andsendToPresenter { }
. Now all methods in Activities and Fragment implementations use@Override
everywhere. And we don't miss something