Skip to content

Instantly share code, notes, and snippets.

@thecodeside
Last active February 20, 2022 17:59
Show Gist options
  • Save thecodeside/f42c5aba55c8ea808c7abf04ccbfd55e to your computer and use it in GitHub Desktop.
Save thecodeside/f42c5aba55c8ea808c7abf04ccbfd55e to your computer and use it in GitHub Desktop.
class FancyViewModel(
private val fancyDataRepository: FancyDataRepository = FancyDataRepository(),
private val dispatchers: DispatcherProvider = DefaultDispatcherProvider(),
private val notificationManager: NotificationManager =
Graph.appContext
.getSystemService(Context.NOTIFICATION_SERVICE)
as NotificationManager,
) : ViewModel() {
class FancyFragment : Fragment() {
private val fancyViewModel: FancyViewModel by viewModels()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment