-
public final class PlayerScreenKt
-
-
Method Summary
Modifier and Type Method Description final static UnitPlayerScreen(PlayerViewModel playerViewModel, VolumeViewModel volumeViewModel, Modifier modifier, Function2<ColumnScope, PlayerUiState, Unit> mediaDisplay, Function3<RowScope, PlayerUiController, PlayerUiState, Unit> controlButtons, Function2<RowScope, PlayerUiState, Unit> buttons, Function2<BoxScope, PlayerUiState, Unit> background, FocusRequester focusRequester)Stateful version of PlayerScreen that provides default implementation for media display and control buttons. final static UnitPlayerScreen(Function1<ColumnScope, Unit> mediaDisplay, Function1<RowScope, Unit> controlButtons, Function1<RowScope, Unit> buttons, Modifier modifier, Function1<BoxScope, Unit> background)Media Player screen that offers slots for media display, control buttons, buttons and background. final static UnitDefaultMediaInfoDisplay(PlayerUiState playerUiState, Modifier modifier)Default MediaDisplay implementation for PlayerScreen including player status. final static UnitDefaultPlayerScreenControlButtons(PlayerUiController playerController, PlayerUiState playerUiState)Default ControlButtons implementation for PlayerScreen. -
-
Method Detail
-
PlayerScreen
final static Unit PlayerScreen(PlayerViewModel playerViewModel, VolumeViewModel volumeViewModel, Modifier modifier, Function2<ColumnScope, PlayerUiState, Unit> mediaDisplay, Function3<RowScope, PlayerUiController, PlayerUiState, Unit> controlButtons, Function2<RowScope, PlayerUiState, Unit> buttons, Function2<BoxScope, PlayerUiState, Unit> background, FocusRequester focusRequester)
Stateful version of PlayerScreen that provides default implementation for media display and control buttons. This version listens to PlayerUiStates emitted from PlayerViewModel to update the screen.
-
PlayerScreen
final static Unit PlayerScreen(Function1<ColumnScope, Unit> mediaDisplay, Function1<RowScope, Unit> controlButtons, Function1<RowScope, Unit> buttons, Modifier modifier, Function1<BoxScope, Unit> background)
Media Player screen that offers slots for media display, control buttons, buttons and background.
-
DefaultMediaInfoDisplay
final static Unit DefaultMediaInfoDisplay(PlayerUiState playerUiState, Modifier modifier)
Default MediaDisplay implementation for PlayerScreen including player status.
-
DefaultPlayerScreenControlButtons
final static Unit DefaultPlayerScreenControlButtons(PlayerUiController playerController, PlayerUiState playerUiState)
Default ControlButtons implementation for PlayerScreen.
-
-
-
-