Skip to content

Instantly share code, notes, and snippets.

@drawers
Last active August 7, 2017 09:42
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save drawers/b2880c78d81db7c5ee373f3bc07b5f4b to your computer and use it in GitHub Desktop.
Save drawers/b2880c78d81db7c5ee373f3bc07b5f4b to your computer and use it in GitHub Desktop.
void showGames(String playerName) {
MainRequestComponent component = DaggerMainRequestComponent.builder()
.playerNameModule(new PlayerNameModule(playerName))
.build();
ListenableFuture<Games> futureGames = component.games();
futureGames.addCallback(...) //todo: show games using view
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment