Dev Console Facade Provider
Functions
Session-code credentials for the running server, or null when it is not running.
Captures the foreground Activity's window and stores it as an attachment, then mirrors it onto the timeline. See ScreenshotResult for every way this can conclude, including ScreenshotResult.Disabled when DevConsoleConfig.screenshotPolicy is off -- which is the default, since a screenshot cannot be redacted.
The endpoint of the running server, or null when it is not running. DevConsoleState.Running carries no payload, so without this a host that loses its StartResult.Started -- to an activity recreation, say -- had no way to recover the address.
The current effective string value for a flag, reflecting any dashboard override. This is the accessor for multi-valued flags declared with io.devconsole.state.FeatureFlag.ofOptions (a boolean flag returns "true"/"false"). Falls back to "" for an unknown key.
The current effective value for a flag declared in DevConsoleConfig.featureFlags, reflecting any dashboard override. Falls back to false for an unknown key.
Feed host log lines in so they join the timeline alongside network calls and crashes.
Wrap in a DevConsoleMockInterceptor and add it to the host's own OkHttpClient.
Wrap in a DevConsoleOkHttpInterceptor and add it to the host's own OkHttpClient.
Called directly from the host's own push receiver. Never attempts provider delivery itself.
Registers a state provider after initialize. Modular apps discover features lazily through DI, so requiring every state provider at construction time was not workable. Returns false if the runtime is disabled.
Wrap in a DevConsoleOkHttpWebSocketListener when opening the host's own WebSocket.