VolumeRepository

A state repository for audio volume, typically the system AudioManager, but possibly a remote app in paired situations.

Inheritors

Properties

Link copied to clipboard
abstract val volumeState: StateFlow<VolumeState>

The current volume state, including volume, min, max.

Functions

Link copied to clipboard
abstract fun close()
Link copied to clipboard
abstract fun decreaseVolume()

Decrease the volume of the current audio output.

Link copied to clipboard
abstract fun increaseVolume()

Increase the volume of the current audio output.

Link copied to clipboard
abstract fun setVolume(volume: Int)

Sets the volume of the current audio output.