ContextState

@Serializable(with = ContextStateSerializer::class)
sealed interface ContextState

Enum of AudioContextState from the spec

Official doc

Inheritors

Types

Link copied to clipboard
@Serializable(with = ContextStateSerializer::class)
data object closed : ContextState
Link copied to clipboard
@Serializable(with = ContextStateSerializer::class)
data object interrupted : ContextState
Link copied to clipboard
@Serializable(with = ContextStateSerializer::class)
data class NotDefinedInProtocol(val value: String) : ContextState

This extra enum entry represents values returned by Chrome that were not defined in the protocol (for instance new values that were added later).

Link copied to clipboard
@Serializable(with = ContextStateSerializer::class)
data object running : ContextState
Link copied to clipboard
@Serializable(with = ContextStateSerializer::class)
data object suspended : ContextState