Interface: InterceptorContext
The handle passed to each interceptor.
Example
Section titled “Example”import { appkit } from "@dbx-tools/appkit";
await appkit.createApp({ plugins: [server()], interceptor: (ctx) => { const auxiliary = startAuxiliary(ctx.env.databricksHost); ctx.onLifecycle("shutdown", () => auxiliary.stop()); },});Properties
Section titled “Properties”
readonlyenv:ResolvedAppEnv
The env auto-configuration computed before boot.
Methods
Section titled “Methods”onLifecycle()
Section titled “onLifecycle()”onLifecycle(
event,fn):void
Subscribe to an AppKit lifecycle event. Mirrors PluginContext.onLifecycle;
the injected lifecycleBridge relays the real events here once the app
boots. A handler registered for an event that already fired is NOT called
retroactively (same semantics as AppKit).
Parameters
Section titled “Parameters”Returns
Section titled “Returns”void