-
public final class MediaPlayerScaffoldKt
-
-
Method Summary
Modifier and Type Method Description final static UnitMediaPlayerScaffold(SnackbarViewModel snackbarViewModel, VolumeViewModel volumeViewModel, Function0<Unit> playerScreen, Function0<Unit> libraryScreen, Function2<String, String, Unit> categoryEntityScreen, Function0<Unit> mediaEntityScreen, Function0<Unit> playlistsScreen, Function0<Unit> settingsScreen, String deepLinkPrefix, NavHostController navController, Modifier modifier, Function0<Unit> volumeScreen, Function0<Unit> timeText, SwipeDismissableNavHostState navHostState, Function1<NavGraphBuilder, Unit> additionalNavRoutes)A UI scaffold for a Media Player with a subset of the following screens. -
-
Method Detail
-
MediaPlayerScaffold
final static Unit MediaPlayerScaffold(SnackbarViewModel snackbarViewModel, VolumeViewModel volumeViewModel, Function0<Unit> playerScreen, Function0<Unit> libraryScreen, Function2<String, String, Unit> categoryEntityScreen, Function0<Unit> mediaEntityScreen, Function0<Unit> playlistsScreen, Function0<Unit> settingsScreen, String deepLinkPrefix, NavHostController navController, Modifier modifier, Function0<Unit> volumeScreen, Function0<Unit> timeText, SwipeDismissableNavHostState navHostState, Function1<NavGraphBuilder, Unit> additionalNavRoutes)
A UI scaffold for a Media Player with a subset of the following screens. Structure is a ViewPager with playerScreen and libraryScreen, with navigation to other screens.
- Parameters:
snackbarViewModel- Stateful view model for snackbarvolumeViewModel- Stateful view model for volume screensplayerScreen- the first screen with player controls.libraryScreen- the long scrolling library top screen.categoryEntityScreen- screen to show details about a particular category.mediaEntityScreen- screen to show details about a particular media.playlistsScreen- screen to show user playlists.settingsScreen- the settings screen.deepLinkPrefix- the app specific prefix for external deeplinksnavController- the media focused navigation controller.modifier- The modifier to be applied to the componentvolumeScreen- the volume screen.timeText- the TimeText() composable.navHostState- the SwipeDismissableNavHostState including swipe to dismiss state.additionalNavRoutes- additional nav routes exposed for extra screens.
-
-
-
-