Skip to content

Instantly share code, notes, and snippets.

@raulh82vlc
Created February 28, 2021 12:44
Show Gist options
  • Save raulh82vlc/72bfb4f524bc384dd558e2dda2ac828e to your computer and use it in GitHub Desktop.
Save raulh82vlc/72bfb4f524bc384dd558e2dda2ac828e to your computer and use it in GitHub Desktop.
SearchViewDelegate's StateFlow propagation
@ActivityScope
class SearchViewDelegate @Inject constructor(
private val presenter: SearchTweetPresenter,
@Named("CoroutineUIScope") private val scope: CoroutineScope
) {
// ...
fun getStateFlow(): StateFlow<TweetsUIState> = presenter.stateFlow
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment