VoiceCommandManager

Constructors

Link copied to clipboard
constructor(service: SoundscapeService)

Types

Link copied to clipboard
data class VoiceCommand(val stringId: Int, val action: (ArrayList<String>) -> Unit)

Properties

Link copied to clipboard
val state: StateFlow<VoiceCommandState>

Functions

Link copied to clipboard
fun destroy()
Link copied to clipboard

Must be called on the main thread when switching to VoiceControl mode.

Link copied to clipboard
Link copied to clipboard
fun updateContext(newContext: Context)

Call this whenever SoundscapeService updates its localizedContext.

Link copied to clipboard
Link copied to clipboard