VolumeViewModel
open class VolumeViewModel(volumeRepository: VolumeRepository, audioOutputRepository: AudioOutputRepository, onCleared: () -> Unit = {}, vibrator: Vibrator) : ViewModel
ViewModel for a Volume Control Screen.
Holds the state of both Volume (volumeState) and AudioOutput (audioOutput).
Volume changes can be made via increaseVolume and decreaseVolume.
See AudioManager.setStreamVolume See AudioManager.STREAM_MUSIC
Constructors
Link copied to clipboard
constructor(volumeRepository: VolumeRepository, audioOutputRepository: AudioOutputRepository, onCleared: () -> Unit = {}, vibrator: Vibrator)