DevConsoleState

sealed class DevConsoleState

Lifecycle state of the SDK runtime, observable via io.devconsole.DevConsole.state (a StateFlow). This tracks the runtime -- whether io.devconsole.DevConsole.initialize has succeeded and whether the embedded browser server is bound -- not individual capture sources; network/socket/push recording is available as soon as Initialized is reached, independent of whether the server has ever been started.

Inheritors

Types

Link copied to clipboard
object Companion
Link copied to clipboard

This build variant is protected (release, wired to devconsole-noop); the runtime is permanently a no-op.

Link copied to clipboard
data class Failed(val message: String) : DevConsoleState

The runtime hit an unrecoverable error; message describes it. Re-initialize to recover.

Link copied to clipboard

Initialized and not running. Capture/storage/state are ready; the browser server is not bound.

Link copied to clipboard

A io.devconsole.DevConsole.startBrowser call requested LAN binding but the runtime local-network permission has not been granted. Waiting for the host to request and receive it, then retry.

Link copied to clipboard
data object Running : DevConsoleState

The server is bound and reachable. Call io.devconsole.DevConsole.endpoint / accessInfo for where.

Link copied to clipboard

A start is in progress -- between io.devconsole.DevConsole.startBrowser being called and it resolving.

Link copied to clipboard
data object Stopped : DevConsoleState

Stopped cleanly after having run. Capture/storage/state remain ready; the server is unbound.

Link copied to clipboard

A stop is in progress -- between io.devconsole.DevConsole.stop being called and the port being released.

Link copied to clipboard

Before the first io.devconsole.DevConsole.initialize call. Nothing is captured yet.