Skip to content

Instantly share code, notes, and snippets.

@javipacheco
Last active November 10, 2017 10:36
Show Gist options
  • Save javipacheco/4bf45baf6e407f8c31327a5381531dbb to your computer and use it in GitHub Desktop.
Save javipacheco/4bf45baf6e407f8c31327a5381531dbb to your computer and use it in GitHub Desktop.
NewsFragment
class NewsFragment:
Fragment(),
NewsUiService {
val newsActorRef = NewsActors(ApiService(), this)
override fun onViewCreated(view: View?, savedInstanceState: Bundle?) {
....
newsActorRef.mainActor.sendBlocking(NewsGetItemsCommand(limit))
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment