VolumeScreen
fun VolumeScreen(modifier: Modifier = Modifier, volumeViewModel: VolumeViewModel = viewModel(factory = VolumeViewModel.Factory), showVolumeIndicator: Boolean = true, increaseIcon: @Composable () -> Unit = { VolumeScreenDefaults.IncreaseIcon() }, decreaseIcon: @Composable () -> Unit = { VolumeScreenDefaults.DecreaseIcon() })
Volume Screen with an InlineSlider and Increase/Decrease buttons for the Audio Stream Volume.
Contains a Stepper with Up and Down buttons, plus a button to show the current AudioOutput and prompt to select a new one.
The volume and audio output come indirectly from the AudioManager and accessed via VolumeViewModel.
See VolumeViewModel See AudioManager.STREAM_MUSIC
fun VolumeScreen(volume: () -> VolumeUiState, audioOutputUi: AudioOutputUi, increaseVolume: () -> Unit, decreaseVolume: () -> Unit, onAudioOutputClick: () -> Unit, modifier: Modifier = Modifier, increaseIcon: @Composable () -> Unit = { VolumeScreenDefaults.IncreaseIcon() }, decreaseIcon: @Composable () -> Unit = { VolumeScreenDefaults.DecreaseIcon() }, showVolumeIndicator: Boolean = true)
Volume Screen with a Output Device chip.