Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can not return value in MvpView #132

Closed
vladkarpman opened this issue Jun 29, 2017 · 4 comments
Closed

Can not return value in MvpView #132

vladkarpman opened this issue Jun 29, 2017 · 4 comments

Comments

@vladkarpman
Copy link

Can not do something like below:
interface MainView: MvpView { fun askPermission(permissions: Collection<String>): Completable }

Moxy doesn't provide ability to return value.

Are you going to add such feature or it's a bug?

@senneco
Copy link
Collaborator

senneco commented Jun 30, 2017

It's not a bug. View can not return some value. It can only notify presenter when something happens

@vladkarpman
Copy link
Author

@senneco Is it done in purpose in order to correspond to principles of MVP pattern?

@senneco
Copy link
Collaborator

senneco commented Jul 7, 2017

@vladkarpman I didn't think about is it principle of MVP or not =) It's what Moxy givenness =) More discuss there: #2

@xanderblinov
Copy link
Collaborator

@vladkarpman you are right, using one direction data flow makes your app better.

Moxy support only one direction data flow by design.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants