NavHostViewModel.kt
Each line, with the release that last changed it.
| 0.5.0 | 1 | package dev.stave.ui.nav |
| 2 | ||
| 3 | import androidx.lifecycle.ViewModel | |
| 4 | import dagger.hilt.android.lifecycle.HiltViewModel | |
| 5 | import dev.stave.ui.metadata.MetadataHandoff | |
| 6 | import javax.inject.Inject | |
| 7 | ||
| 8 | /** | |
| 9 | * Nav-scope handoff holder. Exposes the [MetadataHandoff] singleton so EarhornNavHost can | |
| 10 | * stash the target track before navigating to the metadata screen. Kept separate from | |
| 11 | * NowPlayingViewModel so that adding more cross-screen handoffs later stays clean. | |
| 12 | */ | |
| 13 | @HiltViewModel | |
| 14 | class NavHostViewModel @Inject constructor( | |
| 15 | val metadataHandoff: MetadataHandoff, | |
| 16 | val localScanner: dev.stave.local.LocalMediaScanner, | |
| 17 | ) : ViewModel() |


