Skip to content

Instantly share code, notes, and snippets.

@har5hit
Created July 30, 2018 07:54
Show Gist options
  • Save har5hit/ffc55da87e0d028914c100b0d52912bb to your computer and use it in GitHub Desktop.
Save har5hit/ffc55da87e0d028914c100b0d52912bb to your computer and use it in GitHub Desktop.
---- JAVA ----
@Binds
@IntoMap
@ViewModelKey($ViewModelClassName$.class)
abstract ViewModel bind$ViewModelClassName$($ViewModelClassName$ $ViewModelVariable$);
---- KOTLIN ----
@Binds
@IntoMap
@ViewModelKey($ViewModelClassName$.class)
abstract bind$ViewModelClassName$($ViewModelClassName$ : $ViewModelClassName$):ViewModel;
---- Edit Template Variables ----
ViewModelClassName variableOfType(ViewModel)
ViewModelVariable camelCase(ViewModelClassName)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment