Last active
February 28, 2021 12:49
-
-
Save raulh82vlc/b8eb511914c6c856f67bebe96623e14b to your computer and use it in GitHub Desktop.
SearchTweetPresenter's StateFlow propagation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@ActivityScope | |
public class SearchTweetPresenter { | |
@Inject | |
public SearchTweetPresenter(@NotNull SearchTweetUseCase tweetSearchUseCase) { | |
this.tweetSearchUseCase = tweetSearchUseCase; | |
} | |
// ... | |
@NotNull | |
public StateFlow<TweetsUIState> getStateFlow() { | |
return tweetSearchUseCase.getStateFlow(); | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment