目录

BrowserViewOptions

Options for creating a BrowserView.

Example 

import { BaseWindow, BrowserView } from '@mobrowser/api';

const win = new BaseWindow({
  size: { width: 800, height: 600 }
})
const view = new BrowserView({
  url: 'https://example.com'
})

win.contentView.addChildView(view)
view.setBounds({
  origin: { x: 0, y: 0 },
  size: { width: 800, height: 600 }
})
win.show()

Properties 

url 

readonly url?: string;

The initial URL to load in the view.

transparentBackground 

readonly transparentBackground?: boolean;

Whether the view background should be transparent.