state

abstract val state: StateFlow<Microphone.State>

The current state of the microphone. Implementations should update this as the microphone changes state. Example:

val state = MutableStateFlow<State>(State.Disconnected)
override val state: StateFlow<State> = state