AudioOutput

interface AudioOutput

A device capable of playing audio.

This interface is intentionally open to allow other targets to be defined in future.

Inheritors

Types

Link copied to clipboard
data class BluetoothHeadset(val id: String, val name: String, val isPlayable: Boolean = true) : AudioOutput

A bluetooth headset paired with the watch.

Link copied to clipboard
object Companion
Link copied to clipboard
object None : AudioOutput

No current device.

Link copied to clipboard
data class Unknown(val id: String, val name: String, val isPlayable: Boolean = false) : AudioOutput

An unknown audio output device

Link copied to clipboard
data class WatchSpeaker(val id: String, val name: String, val isPlayable: Boolean = false) : AudioOutput

The one device watch speaker.

Properties

Link copied to clipboard
abstract val id: String

A unique audio output id.

Link copied to clipboard
abstract val isPlayable: Boolean
Link copied to clipboard
abstract val name: String

The user meaningful display name for the device.

Link copied to clipboard
open val type: String

Optional type of output which may be associated with an icon or displayed name.