Skip to content

Instantly share code, notes, and snippets.

@javipacheco
Created May 23, 2018 20:54
Show Gist options
  • Save javipacheco/7d7ff6e75531fa1b78c32f2a93e43f84 to your computer and use it in GitHub Desktop.
Save javipacheco/7d7ff6e75531fa1b78c32f2a93e43f84 to your computer and use it in GitHub Desktop.
Calling to ViewModel from Activity
newsModel.dispatch(NewsGetItemsCommand()).unsafeRunAsyncWithException {
newsModel.notification(Notifications.NewsGetItemsNotification(it))
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment