DevConsoleConfig

data class DevConsoleConfig(val eventBufferCapacity: Int = DEFAULT_EVENT_BUFFER_CAPACITY, val stateProviders: List<StateProvider> = emptyList(), val featureFlags: List<FeatureFlag> = emptyList(), val composerEnabled: Boolean = false, val composerAllowedHosts: Set<String> = emptySet(), val stateMutationsEnabled: Boolean = false, val redactionPolicy: RedactionPolicy = RedactionPolicy.default())

Host configuration supplied to io.devconsole.DevConsole.initialize.

Kotlin callers use named arguments; Java callers use DevConsoleConfig.builder, because Kotlin default arguments do not cross the language boundary and positional construction would break at every call site the moment a field is added.

State providers and flags supplied here are registered at initialize. Features that are constructed later can register themselves through io.devconsole.DevConsole.registerStateProvider.

Constructors

Link copied to clipboard
constructor(eventBufferCapacity: Int = DEFAULT_EVENT_BUFFER_CAPACITY, stateProviders: List<StateProvider> = emptyList(), featureFlags: List<FeatureFlag> = emptyList(), composerEnabled: Boolean = false, composerAllowedHosts: Set<String> = emptySet(), stateMutationsEnabled: Boolean = false, redactionPolicy: RedactionPolicy = RedactionPolicy.default())

Types

Link copied to clipboard
class Builder

Mutable builder for Java callers and for incremental construction.

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
Link copied to clipboard

Which capture surfaces are enabled at all. Defaults to every category so existing hosts see no behaviour change. An empty set is legal -- it means "capture nothing" -- and is reported (never thrown) as ConfigValidationCode.NO_CAPTURE_CATEGORIES_ENABLED by validationErrors.

Link copied to clipboard

Exact hosts the Composer may reach when composerEnabled. Empty denies every destination.

Link copied to clipboard

Enables the Composer, which lets an authenticated session make the device issue arbitrary outbound HTTP requests. Off by default because that turns the device into a proxy onto its network; pair with composerAllowedHosts to confine it to known backends.

Link copied to clipboard

Uncaught-exception / ANR capture depth. See CrashPolicy for the enable gates and caps.

Link copied to clipboard
Link copied to clipboard
val featureFlags: List<FeatureFlag>
Link copied to clipboard
val redactionPolicy: RedactionPolicy

Redaction applied at every capture boundary and reported to the dashboard.

Link copied to clipboard
Link copied to clipboard

Foreground-window screenshot capture. See ScreenshotPolicy for why it is off by default.

Link copied to clipboard
Link copied to clipboard

Enables dashboard-driven state mutations. Off by default; state stays read-only otherwise.

Link copied to clipboard
val stateProviders: List<StateProvider>
Link copied to clipboard

Additive policy fields live outside the primary constructor to preserve the 1.x JVM ABI.

Functions

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Aggregates host mistakes without throwing into Application.onCreate. The enabled Android facade passes the real debuggable flag; standalone callers default to a debug-safe check.

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard