We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
for example: I need to use activity in MovieRepository ,so how can I inject activity to MovieRepository?
@Inject public MovieRepository(MovieDetailActivity movieDetailActivity,MovieDao movieDao, MovieDBService movieDBService) { this.movieDao = movieDao; this.movieDBService = movieDBService; }
can you write a example in the project ? thinks
The text was updated successfully, but these errors were encountered:
you are not supposed to pass activity to repository in this case you are breaking the concept of MVVM
Sorry, something went wrong.
@hyr0318 you should use ViewModel to interact with repository layer, passing activity into repository violated mvvm principles.
No branches or pull requests
for example:
I need to use activity in MovieRepository ,so how can I inject activity to MovieRepository?
@Inject
public MovieRepository(MovieDetailActivity movieDetailActivity,MovieDao movieDao, MovieDBService movieDBService) {
this.movieDao = movieDao;
this.movieDBService = movieDBService;
}
can you write a example in the project ? thinks
The text was updated successfully, but these errors were encountered: