Skip to content

Universal DevTools Kit SDK


Universal DevTools Kit SDK / @u-devtools/core / OverlayContext

Interface: OverlayContext ​

Defined in: control.ts:3

Properties ​

close() ​

close: () => void

Defined in: control.ts:12

Close the main DevTools window

Returns ​

void


createBridge() ​

createBridge: (namespace) => AppBridge

Defined in: control.ts:38

Create a temporary bridge for sending messages. Useful if you don't have access to the plugin's global bridge in this scope.

Parameters ​

ParameterType
namespacestring

Returns ​

AppBridge


isOpen ​

isOpen: boolean

Defined in: control.ts:22

Current state


open() ​

open: () => void

Defined in: control.ts:7

Open the main DevTools window

Returns ​

void


switchPlugin() ​

switchPlugin: (pluginName) => void

Defined in: control.ts:27

Switch to plugin by name

Parameters ​

ParameterType
pluginNamestring

Returns ​

void


switchTab() ​

switchTab: (pluginName, tabName) => void

Defined in: control.ts:32

Switch tab within plugin by tab name

Parameters ​

ParameterType
pluginNamestring
tabNamestring

Returns ​

void


toggle() ​

toggle: () => void

Defined in: control.ts:17

Toggle window state

Returns ​

void

Released under the MIT License.