目录

DevTools

The DevTools window that can be used to inspect and debug the browser.

import { DevTools } from '@mobrowser/api';

Example 

import { app, DevTools } from '@mobrowser/api';

const win = app.createWindow()
const devTools: DevTools = win.browser.devTools
devTools.open()
win.show()

Properties 

isOpen 

readonly isOpen: boolean;

Whether the DevTools window is open.

Methods 

open() 

open(): void;

Opens and activates the DevTools window. If the DevTools window is already open, it will be activated and focused.

close() 

close(): void;

Closes the DevTools window. Does nothing if the DevTools window is not open.